Learn JavaScript

Lesson 9 of 9 · if, switch and Loops

Module 4 · if, switch and Loops

Module Test: if, switch and Loops

FreeModule test

Questions on the lessons of this module. It is marked, and at the end you see every answer explained.

questions
10
to pass
70%
to take it again
Any time

What it covers

  1. 1Decisions and Loops: The Picture
  2. 2Every Statement, One by One
  3. 3Full Programs: From FizzBuzz to a Prime Sieve
  4. 4Which Loop, and When switch Beats if
  5. 5Under the Hood: Loops as Jumps, the Iterator Protocol and a Loop Lab
  6. 6CP and Interview Pack: Nested Loops, Early Exit and the Bug Gallery
  7. 7Cheat Sheet: if, switch and Loops on One Page