Search⌘ K
AI Features

Quiz: Make Decisions

Explore how to make decisions in JavaScript by practicing with if, else if, and else statements. This quiz helps you apply logic and condition checking skills, preparing you for building interactive projects that respond to user input.

We'll cover the following...
...
Technical Quiz
1.

A student writes:

if (temperature = 100) {
  alert("It's hot!");
}

What’s the mistake?

A.

100 should be in quotes

B.

if can’t use variables

C.

= should be ===

D.

alert can’t be used in if blocks


1 / 3
...