Make decisions with JavaScript

Completed

One of the best-known features of JavaScript is its decision-making capabilities. You can use it to control the order in which your code runs and also makes it more reusable and robust.

In this module, you'll learn about if/else statements and logical operators. You'll also learn about the basic conditions and decision-making tools available in JavaScript.

Tip

Do you want a quick review before you get started? Check out this video for an overview.

Before you get started, let's check what you know now.

Check your knowledge

1.

The operator === is called.

2.

A comparison in JavaScript returns what type?

3.

The ! symbol in JavaScript means: