Goal: In the Assignment, Comparison, and Equality Operators lesson, we learned:
=
and ===
+=
, -=
, *=
, /=
<
, >
, <=
, and >=
===
and !==
Take time to practice using these operators by completing the exercises listed below.
+=
operator different from the +
operator?Practice assigning and comparing:
+=
, -=
, *=
, or /=
operator. If you are working with a pair, switch who's driving and observing and continue with this practice:
<=
and >=
operators by comparing two numbers.===
equality operator by comparing two strings.!==
equality operator on two strings or numbers to get a true
and false
return value.