Please enable JavaScript to use CodeHS

Mocha Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Negate General

To flip a boolean value, or take the opposite of a boolean value. If you negate true, you get false. If you negate false, you get true.

Variable Java

A symbol or container that holds a value.

boolean Java

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

And operator Java

Logical operator that ANDs two boolean values. Written as `&&`. `a && b` will be true if both `a` and `b` are true.

Or operator Java

Logical operator that ORs two boolean values. Written as `||`. `a || b` will be true if `a` or `b` is true.

Not operator Java

Logical operator that negates a single boolean value. Written as `!`. `!a` will be true if `a` is false, and false if `a` is true.

Logical Operator Java

Used to make logical associations between boolean values.

Short Circuit Evaluation Java

When the result of a logical expression using && or || can be determined by evaluating only the first Boolean operand, the second is not evaluated.

Toggle General

To switch between two states, such as turning a light on and off

Compound Boolean Expression Java

A Boolean expression that combines two or more conditions using logical operators