Booleans review

What you need to know for Monday's assessment.

How to write literal boolean values

true and false

The three logical operators on booleans

&&, ||, and !

What they do and how to use them in expressions.

Grouping

() to deal with order of operations

E.g. (a && b) || c

&& has higher precedence than || just like * has higher precedence than +.

Other operators that produce booleans

<, >, <=, >=, ===, and !==

As before, try to write an expression

Even if you get stuck on the function syntax, try to write something that looks like a correct expression using meaningful names.

You’ll at least get credit for your understanding of boolean expressions.