Binary to Decimal

Challenge 📝

Resources 📚

Given is a binary number bin. Return this number as a number in the decimal number system.

#JavaScript Numbers

Medium

unsolved

function bin2dec(bin) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag