You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6. Repeat steps 3 through 5 to create another input field for the rate of return with the text "Rate of return (percent): " and an id attribute of "rate".
15
+
7. Repeat steps 3 through 5 to create another input field for the rate of number of years with the text "Years: " and an id attribute of "years".
16
+
8. Add two input tags with a type of "button".
17
+
9. Give the first button a value attribute of "Calculate" and an onclick attribute that is equal to "calculate()".
18
+
10. Give the second button a value attribute of "Reset" and an onclick attribute that is equal to "reset()".
19
+
11. Add another p tag with in id of "results_table" that will hold the generated results table.
20
+
12. Open the main.js file and define the calculate and reset functions. calculate should generate a view like that below. reset should clear out the results table. <br>
0 commit comments