convert the number in the heaxadecimal, binary , octal value in javascript

technical talkiess
0

 convert the number in the heaxadecimal, binary , octal value in javascript



<script>


let decimal_numbers = prompt("Enter the number");


  alert("binary no is "+ Number.parseInt(decimal_numbers,2));

    alert("oct no is "+ Number.parseInt(decimal_numbers,8));

      alert("hexa decimal no is "+ Number.parseInt(decimal_numbers,16));

</script>

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)