- Create an HTML file that has two input fields to accept the two numbers to perform operations on.
- Create 4 buttons to perform each of the basic mathematical functions (add, subtract, multiply, divide).
- In your JavaScript, put an event listener on each of the buttons.
- Copy the code below an implement a basic calculator.
- When the user performs one of the operations, output the result to another DOM element of your choice.