๐ Binary to Decimal Converter
In this challenge, you must build an algorithm that must be able to receive a number in binary and convert it to base 10 (decimal number system). Use the Javascript programming language.
- It must be possible to receive a number in binary;
- You must notify if you have an input that is not binary;
- Must return the converted number.
const input = '0110';
const result = run(input);
// output
// 6
console.log(result);
Before starting, you need to have Git and Node installed.
# Clone this project
$ git clone https://github.com/Kayke-Fujinaka/Binary2Decimal
# access
$ cd binary2decimal
# install dependencies
$ yarn or npm
# Run the project
$ yarn start or npm start
# The server will initialize in the <http://localhost:3000>
Thanks to the following people who contributed to this project:
Kayke Fujinaka |