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

Son tan altos como nosotros. Correct or Incorrect
when 10x^3+mx^2-x+10 is divided by 5x-3, the quotient is 2x^2 +nx-2 and the remainder is 4. Find the values of m and n.
yo____ emocionada use the verb ser or tener
the united states postal service delivers about 2^8 x 5^2 pieces of mail each second. There are 2^8 x 3^4 x 5^2 seconds in 6 days. How many pieces of mail does
Nicole deposited $2,000 at 6% simple interest. How long will it be before she has $2,600 in her account?
In the map shown above, what does the small region below the Mexican Cession represent?
Multiple choice question, will reward brainlyiest answer!
Tail length in mice varies within a population. Scientists observed change in the distribution of tail lengths in a mouse population over time. At the genetic l
Is it possible for Michael and Danielle to have a child who has type O blood? How do you know this? Was a switch made at the hospital? Explain your reasoning
Helppp meeee plsssss