Please enable JavaScript to use CodeHS

Introduction to Computer Science in JavaScript (Bulldog) (2022)

Lesson 5.2 Logical Operators

Description

In this lesson, students will learn about logical operators. Logical operators allow students to connect or modify Boolean expressions. Three logical operators are the !, ||, && characters.

  • ! = NOT
  • || = OR
  • && = AND

Objective

Students will be able to…

  • Describe the meaning and usage of each logical operator: OR (||), AND (&&), and NOT (!)
  • Construct logical statements using boolean variables and logical operators