Please enable JavaScript to use CodeHS

Intro JS Glossary

Flashcards

Course:

Module:

Lesson:

Search:

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

If Statement

If Else Statement General

Control structure that lets us run either one section of code or another depending on a test.

If Else Statement

Conditional Statement General

A statement that evaluates to true or false.

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

While Loop General

Lets us repeat code as long as something is true.

While Loop

For Loop JavaScript

A for loop lets us repeat code a **fixed number of times**.

For Loop