Question: Please add the full of javascript code(By typed) into the HTML&CSS code following the Javascript requirement blow, thank you so much HTML&CSS :

Please add the full of javascript code(By typed) into the HTML&CSS code following the "Javascript requirement" blow, thank you so much

HTML&CSS:

"

ITMD 465/565 Lab 1 - USERNAME - Simple Calculator

ITMD 465/565 - Lab 1 - Simple Calculator

Your First and Last Name - Your Email address

"

Javascrpit requirement:

"1. Put in value 1 and value 2.

2. Click any of the buttons (add, subtract, multiply, divide) and it will do that operation to value 1 and value 2 and show the answer in the results box.

3. If value 1 or value 2 is blank or not a number you need to instead show an alert prompt stating that one of the two values are not a number or empty and do not show any results in the results box.

4. If a letter or non-number character is put in a value box it should show an alert error saying so.

5. If the reset button is clicked it should clear out all the values in value 1, value2, and the results box. o Prevent the user from trying to divide by zero. If they try to divide by zero prompt them with an alert error.

6. Each of the five buttons should have a corresponding event handler function that has been attached to the click event on the respective button. Use the addEventListener method, do not modify the HTML to add an onclick attribute."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!