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

Kelly makes $10 more per hour than her regular pay when she is working overtime. Yesterday, she worked 8 regular hours and 4 overtime hours and earned $160. Wha
"Which color of light appears to be least effective for photosynthesis in spinach leaves? (1)white (2)blue (3)green (4)red"
What's the population of the united states?
A block on the end of a spring is pulled to position x = a and released from rest. in one full cycle of its motion through what total distance does it travel a)
How did southerners feel about the federal government paying state war debts, and how did Hamilton change their minds? ... of the nation's government? Hamilton:
__________ is to break a substance into cations and anions. Misciblation Solvation Dissolution Ionization Saturation
A student made a model of isostasy by placing a block of wood in a beaker of water how can a student demonstarte isostaic rebound using her model
If dog food costs $0.88 per pound, how much dog food can you buy with$100
What is the least important factor to consider when enhancing your writing style to improve your description? what your goal is for the narrative who will be
What's 10x10^100 power ?