QP School

Full Version: Binary to Decimal in JavaScript
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Code:
Num001 = 0B00000000;
Num002 = 0B00000001;
Num003 = 0B00000010;
Num004 = 0B00000011;

document.write(Num001);
document.write("<br>");
document.write(Num002);
document.write("<br>");
document.write(Num003);
document.write("<br>");
document.write(Num004);