Functions Quiz

Interactive Quiz ⋅ 11 Questions
By Martin Breuss

In this quiz, you’ll revisit Functions. You’ll trace when a function’s body runs, follow arguments into parameters, tell returning from logging, predict which variable a name refers to, and choose a sensible split for a small brief.

Most questions show a short piece of JavaScript and ask what it prints. Others ask you to complete a script or pick the functions that belong in a plan.

The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A developer presses an arcade button as star tokens ride a conveyor into stacked boxes labeled SCORE, RANK and MESSAGE, which pass numbers down to a RETURN printer.

Course

Functions in JavaScript

Learn to write small JavaScript functions that take values and return answers, then combine them into an arcade score toolkit that works out each player's score, rank, and message.

basics js