Konversi Binary menjadi JavaScript Desimal
var digit = parseInt(binary, 2);
1337
var digit = parseInt(binary, 2);
var binary = "1101000";
var digit = parseInt(binary, 2);
console.log(digit);
let binary = 0001
parseInt(binary, 2)
// returns 1