fisher123.com JavaScript Loops

While Loop

The number of times the loop will repeat is defined by the use (Can you say Interactivity?)

click here to begin

TRY IT!

You will use the while loop to create a delay.

  1. Write an HTML document with a for loop that counts to 10,000,000 (yes ten million)
  2. When the script is done counting an alert will pop up that says "all done"
  3. HINT you don't want the numbers to show up on the page. The script is just used to count to 10,000,000

check it out here