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

A line with a slope of 5 passes through the points (v,-9 and (7,6). What is the value of v?
The reforms of China’s Deng Xiaoping that were introduced in 1976 have _____.
why did government officials often favor the interests of big business?
When placing the vehicle in motion, it is strongly recommended that the last task you perform is to release the parking brake. why?
What is the ability of one branch to limit power of the others is called?
Under the Constitution, government is allowed to discriminate in some way among groups of people. Otherwise, the government would be unable to _____.
How can I make a science invention that no one have never made before? I need help choosing the topic and the steps to follow.
The study of why people's beliefs, attitudes, and behaviors can cause problems with others is a part of:
Durante un partido de futbol un delantero hizo 45 lanzamientos en la porteria y de esos anoto 27 goles, cual fue el porcentaje de aciertos del jugador
What type of government has separate branches that provide checks and balances?