This is a premium course. To view and assign premium course, you must upgrade your account
A collection of exercises using boolean logic
Learn to use booleans (true and false) and their operators (&&, ||, !, ===, <, >, >=, <=, !=)
Use && for "and". Use || for "or"
We can use else to decide what to do if the conditional is false
When computing long strings of logic we always combine && before ||
Calculate whether a given year is or is not a leap year