tracks

Codecademy

Sign in Sign up
Ajax-loader-large-white
15/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
Back to Editor

Sign in