course content

Course Content

Introduction to JavaScript

Challenge: Compare VariablesChallenge: Compare Variables

Task

You have three variables: a = 33, b = 26, and c = "26". Complete comparing operations:

  1. a is equal to b.
  2. b is strict equal to c.
  3. a is greater than or equal to c.
  4. b is less than c.
  5. a is greater than b AND b is equal to c.
  6. a is equal b OR c less than a.

The output should be:

Hint
1. Use the operators: ==, ===, >=, <, and >.

2. Use the operators: AND (&&), OR (||).

Section 3.

Chapter 8