Question: 2) Write javascript and html code that will do the following. 1. Make a header that says The Amazing Adder 2. Create a div 3.

 2) Write javascript and html code that will do the following.

2) Write javascript and html code that will do the following. 1. Make a header that says "The Amazing Adder" 2. Create a div 3. Inside the div place 2 input fields, num1 and num2. Type will be text and size will be 3, Between them will be a + sign and after them will display an = sign. 4. Create a span called answer after the equals sign followed by a line break. 5. Make a button inside the div as well and attach a javascript function to it. 6. Create a javascript function within script tags (you do not need a seperate file) that will grab the input from num1 and num2. Save their sum into a variable and update the html on the page so that their sum shows up in the answer span

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!