For this assignment, build a calculator that handles only 2 numbers.
Live example: https://itp404-fall2023-assignment-2-calculator.surge.sh/
How to use it:
- Click a number
- Click an operator (plus, minus, divide, multiply)
- Click another number
- Click equal
- Click C to clear and start over
This is not a very robust calculator, so this assignment does not require the use of loops, arrays, or objects. It only requires click handlers, if statements, and state that contains primitive data types.
If you have are unsure how to get started, check out this Gist with some code to hopefully get you started.
GitHub Classroom Submission Link
If you used Create React App for the assignment, please deploy your assignment to Surge using these instructions and include a link at the top of the README.md
file. We will cover this in class together in Week 4.