Basic calculator built with HTML/CSS/JS (Re-building Feb 2024)
Basic logic in place - to revisit after some more learning! To Do:
- Handle decimal inputs
- Styling
- Add backspace
- Handle keyboard input
Done:
- Arithmetic functions
- Add variables for calculator operations
- Add generic function to operate given 2 numbers and requested operation
- Add HTML for calculator pad + display
- Add clear button to reset calculator
- Add function to update display
- Wire up HTML + JS
- Handle case where 2nd operator pressed rather than equals
- Handle calculations where user uses result of first calculation in a follow-up
Brief: The Odin Project