Optional

Placement check

A few quick questions for Programming Foundations. Get most of them right and we'll unlock the early lessons you clearly already know. Get them wrong and nothing bad happens — you just start at the beginning, which is a perfectly good place to start.

1. What does let total = 0; total = total + 5; leave in total?

2. What does "3" + 4 produce in JavaScript?

3. Which runs a block only when a condition is true?

4. How many times does a for...of loop body run over [1,2,3,4]?

5. What does return do inside a function?