WDV221 Intro Javascript

Skill Test - Loops and Conditions

Includes Math Operators, If Statements, Loops and Arrays

Instructions:

1. Write a run time For Loop that will display 1-5. Each number should be within a <p>.

2. Write a run time While Loop that will display 2-10. Each number should be within a <p>.

3. Fix the following loop. It should display 5 items.

4. Change the following loop to include the line number on each output.

5. Fix the last button to work like the others.

6. Finish the function for the High-Low game.

High Low Game

Result!

7. Use the array classes[] and Javascript to complete the following drop down box.