Write a function named toDecimal
that receives a string representing a number in binary notation and returns its value in decimal notation.
There's a built-in API that easily allows this conversation. So don't hesitate to look for it on MDN.
base2Number
=base2Number
=