WDV221 Intro Javascript

Project-5 Loops Assignment


Please complete the following exercises on this page. When complete post this page to your server. Make a link in your WDV221 homework page for this assignment.

Include a comment in each script with the exercise number and a description of what the script is supposed to do.

Using Canvas submit this Assignment.


Instructions:

Please complete the following exercises using Javascript loops as indicated. Please place your code on this page. Use runtime scripts unless told otherwise.

1. Create a WHILE loop that will print out the numbers 0 to 4 each on a seperate line.

2. Create a FOR loop that will print out the numbers 4 to 0 each on a seperate line.

3. Create a loop that will print 1 to 5 each in its own paragraph element.

4. Create a loop that will print out the following numbers (5,10,15,20,25...) until one is greater than 40.

5. Create a loop that will print out 6 of the following messages (Option 1, Option 2, Option 3, etc. ) as options within the drop down menu below.