Assignment 2

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:

  1. Click a number
  2. Click an operator (plus, minus, divide, multiply)
  3. Click another number
  4. Click equal
  5. 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.

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.

https://classroom.github.com/a/_JdK6OSe