In C# if I do
var value = Convert.ToInt32("1000000000000000000000000000000", 2);
It will return 1073741824 but when I do the same in javascript,
1073741824
parseInt(1000000000000000000000000000000,2)
It return 1 but not 1073741824
1
You need to pass string as first parameter
string
console.log(parseInt("1000000000000000000000000000000",2))
It's because in JavaScript you're lacking the quotation marks :)
parseInt("1000000000000000000000000000000",2)
works fine.