tracks

Codecademy

Ajax-loader-large-white
14/71
JavaScript Quick Start Guide
If

Although you should be familiar with most of this, let's quickly review the syntax of some common JS control flow.

Here's an example of an if statement that uses else if and else.

Try modifying this to test if a variable is undefined or null.

Instructions
script.js

Sign in