Used to make logical associations between boolean values
Logical operator that ORs two boolean values. Written as `||`. `a || b` will be true if `a` or `b` is true.
Logical operator that ANDs two boolean values. Written as `&&`. `a && b` will be true if both `a` and `b` are true.
Logical operator that negates a single boolean value. Written as `!`. `!a` will be true if `a` is false, and false if `a` is true.
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.
Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.
An if statement lets you ask a question to the program and only run code if the answer is true.
Control structure that lets us run either one section of code or another depending on a test.
A control structure lets us change the flow of the code.
An edge case is a problem in your code that only occurs in extreme situations.
A problem when using a while loop where you forget one action at the beginning or the end.
A variable used to count the number of times an action has been performed
A constant that has the specific purpose of being the value that breaks out of a loop.
A loop, most often set with while(true), that has a break in the loop body.
The `break;` statement breaks out of the current loop, without executing any more code in the loop.
A loop that has no way of stopping, and will keep looping forever.
Documentation for the syntax and objects in Javascript that we use on CodeHS.
Don't repeat yourself: try to simplify your code and avoid repeating code unnecessarily.
Repetition of instructions a specified number of times, or until a condition is met.