Please enable JavaScript to use CodeHS

NV MS Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Loop General

A loop is a way to repeat code in your program.

Loop

For Loop JavaScript

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

For Loop

While Loop General

Lets us repeat code as long as something is true.

While Loop

Break Down (Decompose) JavaScript

Breaking down (decomposing) your code is splitting it into more functions.

Break Down (Decompose)

Read Like a Story JavaScript

Programs that "Read like a story" have good decomposition and make the code easy to follow.

Read Like a Story

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

Decomposition General

Decomposition is breaking your program into smaller parts.

Decomposition

If Else Statement General

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

If Else Statement

Control Structure General

A control structure lets us change the flow of the code.

Control Structure loops if statements

Fencepost Problem General

A problem when using a while loop where you forget one action at the beginning or the end.

Fencepost Problem