Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVASCRIPT PLZ Write a Function named octalToDecimal that performs octal to decimal conversion. When invoked on a String that contains the representation of an octal
JAVASCRIPT PLZ
Write a Function named octalToDecimal that performs octal to decimal conversion. When invoked on a String that contains the representation of an octal number, the Function returns a decimal version of that value as a Number. Implement the conversion yourself: do not use something else to perform the conversion for you.
EXAMPLE:
octalToDecimal('1'); // 1 octalToDecimal('10'); // 8 octalToDecimal('130'); // 88 octalToDecimal('17'); // 15 octalToDecimal('2047'); // 1063 octalToDecimal('11'); // 9
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started