This repository has 3 challenges for the AllMediaDesk test
Develop a term calculator that can handle (), *, /, +, and -.
Run tests inside the folder part1
node .\index.js --debug=false --tests=true
Run math expression inside the folder part1
node .\index.js --expression="(5+8)-3+(8-3)" --debug=false
Peter likes numbers. As a meditation exercise, he likes to write down all the numbers starting with 1 whose digits are sorted in ascending order
Run tests inside the folder part2
node .\index.js --tests=true
Get Peter meditation number inside the folder part2
node .\index.js --number=12345673221
Allow the term calculator to accept lines in the form y = with x as an additional possible character in the term. If such a complete equation is given, you display a simple x / y graph
I choose make the project with ReactJS, the build is ready to run, and I left the file index.html appinted to build file
If you want start the project, you can use:
-
Go to inside the folder part3/cartesian-plane/
-
Install dependencies
yarn
- Start the project
yarn start
Extras:
Img tests in part 1:
Img tests in part 2:
Img gaph in part 3: