hands-on lab

Working with JavaScript Logical Operators

Difficulty: Intermediate
Duration: Up to 40 minutes
Students: 712
Rating: 4/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

In this lab, you will be working with JavaScript Logical Operators. Logical operators have typically been used with Boolean (logical) values. When used, they will also return a Boolean value.

You will use console.log() with Boolean values to understand what results are returned under certain combinations.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Use &&, ||, and ! logical operators.
  • Predict what results will occur from different combinations of operators and Boolean values

Intended Audience

  • Beginners learning front-end development
  • Software Engineers who need to learn front-end technologies to expand their skillset

Prerequisites

The following courses/courses and labs can ensure your success:

Covered topics

Lab steps

Introduction to JavaScript Labs
And operator true
And operator false
Or operator true
Or operator false
Not operator true
Not operator false