Learn how to build a calculator from scratch that functions like an iPhone calculator (without the +/- and percentage functionalities).
Make sure you have a decent command of JavaScript. Minimally, you need to know these things:
- If/else statements
- For loops
- JavaScript functions
- Arrow functions
- && and || operators
- How to change the text with the textContent property
- How to add event listeners with the event delegation pattern
- Download Project Files (.zip)
- Rename the downloaded project folder to
calculator
- Move it to your Sites directory
- In terminal, cd to the
calculator
folder and execute thegit init
command.