This is a mobile-first calculator app written in vanilla Javascript and styled with SCSS.
It was a project set during week 4 on the full-time _nology course. The aims were to take what we had learnt up to that point to produce a working calculator, implementing a mobile-first approach and to practice writing psuedocode.
Psuedocode helps!
Defining DOM elements as variables so that I could iterate over them and add event listeners.
Switch statements - used to perform the operations
parseFloat - to return floating point numbers
A cypress test file has been added to check that the buttons and calculations work as they should for the end user.
To run Cypress:
npm init
npm install cypress --save-dev
To open Cypress:
npx cypress open
Docs here: