Conditions
suggest changeif and else choose code based on whether a condition is truthy or falsy, not only on the booleans true and false. This section covers conditionals, Boolean logic, and the conditional operator.
Remarks
Conditions can break normal program flow by executing code based on the value of an expression. In JavaScript, this means using if, else if and else statements and ternary operators.
&& and || as conditional statements
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents