DEV Community

Discussion on: Daily Coding Puzzles - Oct 29th - Nov 2nd

Collapse
 
clandau profile image
Courtney
const binaryArrayToNumber = arr => {
  return parseInt(arr.join(''), 2);
};
Enter fullscreen mode Exit fullscreen mode