Mega Code Archive

 
Categories / JavaScript Tutorial / Global
 

Parse binary number

< 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>