For converting decimal to binary it uses toString(2). We just need to specify the base (which in this case is 2).
For binary to decimal it's done by parseInt(binaryString, 2). It converts the string (acknowledging it's base specified in the second parameter) to a number.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Made with โค๏ธ by Guilherme Samuel
๐๐ฝ Feel free to talk with me!