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

what is a term used to refer to the most privileged group in this country
Which word correctly completes the sentence? My oldest __________ coin collection includes some rare and valuable items.         A. brothers       B.
if the measure of angle one is "two-x minus nine" and the measure of angle two is "twenty seven minus four-x", solve for x.
How many digits will be in the quotient of 588divided by 6 use place value to explain
Solve and check 7/8h-5/8=2
Which word correctly completes the sentence? That photographer specializes in __________ portraits.   A.
How do you write down 6.24 divided by 2.4 showing work?
Which statement describes one difference between hormones and neurotransmitters? A. Hormones modify cellular activity. B. Hormones are secreted into the bloodst
Write an equivalent expression for 60 + 45
for which achievement is Suleiman the magnificent best known?