Parse binary number : parseInt « Global « JavaScript Tutorial






<html>
    <body>
    <script language="JavaScript">
    <!--
    document.write("The binary string 101101 converted to an integer is: ");
    document.write(parseInt("101101", 2) + "<br>");
    -->
    </script>
    </body>
    </html>








8.11.parseInt
8.11.1.Global.parseInt()
8.11.2.Parse binary number
8.11.3.Parse hexidecimal string