Advertisement
Spocoman

05. Binary to Decimal

Jan 18th, 2022
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(input) {
  2.  
  3.     console.log(parseInt(input, 2).toString(10));
  4.  
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement