Johnatron5464 Johnatron5464
  • 13-01-2021
  • Computers and Technology
contestada

Write a procedure ConvertToBinary that takes an input as a number from 0 to 16 (including 0 but not 16) and converts it to a binary number. The binary number should be returned as a list.

Respuesta :

tonb
tonb tonb
  • 13-01-2021

Answer:

function ConvertToBinary(n) {

 console.log(n.toString(2).split(''));

}

ConvertToBinary(13);

Answer Link

Otras preguntas

If the distance between the first and the ninth crests in a string is 320 cm on the way velocity is 8 m/s calculate the periodic time
Which is the best hypothesis to use for this investigation
Take some time but answer correctly
convert 84 2/3% to a fraction in lowest terms
Read the following stanza from the poem "The Snowball Fight." Both teams had made their forts. Small snowballs were prepared. Both teams huddled in their forts,
What was the anti-Federalist greatest opposition to the constitution A. They wanted to keep power in the hands of a large business owners B. They worried it wo
It takes Omar 15 hours to rake the front lawn while his brother, Wyatt, can rake the lawn in 12 hours. How long will it take them to take the lawn working toget
appraise the practice of advertising in business in nigeria​
Assume that the weight of chocolates in boxes of 'celebrations' chocolates in the UK are approximately normally distributed with N(μ=5.8,σ=1.3). Also assume tha
What was the reasoning of the United States government for placing thousands of Japanese Americans into internment camps? A. Japanese Americans were quarantin