Number.parseInt(input, 2); does not show the binary value after 2 when the input is in decimal

后端 未结 0 1143
情话喂你
情话喂你 2021-01-04 02:23

This is the code:

var input = prompt("Enter a decimal value");

console.log(input +" the binary value would be:", Number.parseInt(input, 2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题