Track JavaScript (Legacy)
JavaScript (Legacy) track

Binary

An exercise from the JavaScript (Legacy) track
medium

About this exercise

Convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles

control flow conditionals
control flow loops
exception handling
integers
mathematics
regular expressions
strings
View all solutions