Parse binary number : parseInt « Global « JavaScript Tutorial
- JavaScript Tutorial
- Global
- parseInt
<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>