Test your knowledge of JavaScript conditions and loops by answering the following questions.
| 1. | Which of the following operators means "is not equal to" in JavaScript?
|
| |
| 2. | What does the switch statement do?
Tests a variable for a number of different values Turns a variable on or off Makes ordinary if statements longer and more confusing
|
| 3. | Which type of JavaScript loop checks the condition at the end of the loop?
|
| 4. | Within a loop, what does the break statement do?
Escapes the loop entirely
|
| 5. | The statement while (3==3) is an example of
An illegal JavaScript statement
|