SyntaxFix
Write A Post
Hire A Developer
Questions
Use the radix parameter of parseInt:
parseInt
var binary = "1101000"; var digit = parseInt(binary, 2); console.log(digit);