Project 3 - Javascript I - Part D

  1. Login to your W3 Schools Spaces account and open your project3.html file.
  2. Using what you learned about loops Create a countdown using a while loop that starts at 10.
  3. For each loop, add the following to an alert () function 'Countdown is at position:' and add the countdown number.
  4. BONUS: use innerHTML to insert the countdown text inside the paragraph with the id of 'para1'. You can use a break tag to have each countdown text appear on its' own line. It should look like this in your page:
    Countdown is at position: 10
    Countdown is at position: 9
    Countdown is at position: 8
    Countdown is at position: 7
    Countdown is at position: 6
    Countdown is at position: 5
    Countdown is at position: 4
    Countdown is at position: 3
    Countdown is at position: 2
    Countdown is at position: 1

Congratulations! You have now completed your Javascript I project.