Lab 12: loops
This lab will allow you to work with for loops and while loops. You should place the script in the body of your page. The script should prompt the user to enter a hexidecimal color code for the foreground color (using the document.fgColor object). The user should then be asked if they are happy w/ that color (using the window.confirm() method). If the say ok, then the script should move on, if cancel then the script should reprompt for another number and continue this untill the user clicks ok.
The script should then prompt for an even integer and calculate the sum of the even integers less than or equal to that integer and output the results as well as a running total of the sum.
Save your file as lab12.html.