Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge: Comparing Variables | Basic Operations
Introduction to JavaScript

Challenge: Comparing VariablesChallenge: Comparing Variables

Task

We have three variables in this task: a = 33, b = 26, and c = "26". We will perform various comparing operations on these variables.

  1. Check if a is equal to b.
  2. Check if b is strictly equal to c.
  3. Determine if a is greater than or equal to c.
  4. Find out if b is less than c.
  5. Check if a is greater than b AND if b is equal to c.
  6. Check if a is equal to b OR if c is less than a.

The output should be:

  1. Use the comparison operators: =====>=<>.
  2. Use the logical operators: AND (&&) and OR (||).

Everything was clear?

Section 3. Chapter 8
course content

Course Content

Introduction to JavaScript

Challenge: Comparing VariablesChallenge: Comparing Variables

Task

We have three variables in this task: a = 33, b = 26, and c = "26". We will perform various comparing operations on these variables.

  1. Check if a is equal to b.
  2. Check if b is strictly equal to c.
  3. Determine if a is greater than or equal to c.
  4. Find out if b is less than c.
  5. Check if a is greater than b AND if b is equal to c.
  6. Check if a is equal to b OR if c is less than a.

The output should be:

  1. Use the comparison operators: =====>=<>.
  2. Use the logical operators: AND (&&) and OR (||).

Everything was clear?

Section 3. Chapter 8
some-alt