Course Content
Introduction to JavaScript
Challenge: Compare Variables
Task
You have three variables: a = 33
, b = 26
, and c = "26"
. Complete comparing operations:
a
is equal tob
.b
is strict equal toc
.a
is greater than or equal toc
.b
is less thanc
.a
is greater thanb
ANDb
is equal toc
.a
is equalb
ORc
less thana
.
The output should be:
Hint
1. Use the operators:
2. Use the operators: AND (
==
, ===
, >=
, <
, and >
.2. Use the operators: AND (
&&
), OR (||
).
Section 3.
Chapter 8