Track JavaScript (Legacy)
JavaScript (Legacy) track

Octal

An exercise from the JavaScript (Legacy) track
medium

About this exercise

Convert a octal number, represented as a string (e.g. '1735263'), to its decimal equivalent using first principles (i.e. no, you may not use built-in or external libraries to accomplish the conversion).

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