Decisions Quiz

Interactive Quiz ⋅ 11 Questions
By Martin Breuss

In this quiz, you’ll review what you’ve learned in Decisions.

You’ll revisit where an if block ends, how a chain picks one branch, how &&, ||, and ! combine conditions, how string methods find and cut out text, and what truthy values and || give back.

Most questions show a short script and ask what the terminal shows or which code does the job. Good luck!

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 flips a TRUE/FALSE lever on a clay ticket machine whose IF, ELSE IF, and ELSE chutes sort day-trip tickets into green, yellow, and red bins.

Course

Decisions in JavaScript

Teach your JavaScript programs to decide: run code only when a condition holds, choose one path with else if, combine conditions with &&, || and !, clean text with string methods, and check input safely before you use it.

basics js