byte a entero js

var reverseBits = function(n) {
    let x = parseInt(n, 2)
    console.log(x)
};

const data = reverseBits('00111001011110000010100101000000')
Restu Wahyu Saputra