hands-on lab

Working with JavaScript Comparison Operators

Difficulty: Intermediate
Duration: Up to 40 minutes
Students: 690
Rating: 4.3/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 Comparison Operators. Comparison operators are used to determine equality between variables or values. When used, they will return a Boolean value.

You will use console.log() with comparison operators 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 comparison operators.

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
Double equal sign numbers
Double equal sign number and string
Triple equal sign number and string
Triple equal sign numbers
Greater than
Greater than or equal to
Less than
Less than or equal to