Skip to content

Commit f7b676a

Browse files
authored
Merge pull request vJechsmayr#52 from itsGabriel/master
BinaryToDecimal
2 parents f03e9df + 129a6d1 commit f7b676a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function binaryToDecimal(number) {
2+
return parseInt(number, 2);
3+
}
4+
5+
console.log(binaryToDecimal(10001))

0 commit comments

Comments
 (0)