Skip to content

Glossary: JavaScript Basics

if / else if / else

Also written: if, else, else if, if statement

Statements that run a block only when a condition is true. Conditions are checked in order, and only the first matching block runs.

Where the book teaches it

Related terms

BlockswitchTruthy