JavaScript calculator with Jasmine Unit Tests to make sure calculations are performed correctly. This calculator uses immediate execution logic.
live demo: http://frail-pen.surge.sh/
- Firstly you will need to clone this repository by running
git clone https://github.com/sebam2k4/Calculator-JS-Jasmine
command in your terminal. - open index.html to start the calculator in your browser
- open /jasmine/SpecRunner.html to run Jasmine tests
- modify any way you want.
- Enjoy!
Note to self: Try converting the code to use a Calculator object.