Please enable JavaScript to use CodeHS

Mocha Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Condition General

A condition is code that you put inside an if statement or while-loop.

Condition

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

Control Structure General

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

Control Structure loops if statements

Curly Bracket General

An open curly bracket is { and a close curly bracket is }

Curly Bracket

Parentheses General

( and )

Parentheses

Indentation General

Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.

boolean Java

`boolean` is a Java type that can either be true or false

Modulus operator General

The modulus operator (written as % in most programming languages) divides two numbers and returns the remainder.

Nested if Statements Java

The process of placing if statements within if statements.

String Comparison Java

The process of checking if two strings are equal using `.equals()` or `.equalsIgnoreCase()`