If you want to find some more “official” documentation about this stuff a good phrase/term to google is “equality operator(s)”.
“Operator” is the generic term for things like ===
, +
, >=
, and so on.
There are “unary” operators which operate on a single value, like i++
(++
is the operator)
Binary operators work with two values: something == somethingElse
.
There is also one “ternary” operator in javascript - which operates on 3 values! See if you can figure out what it is. (Let me know if you have trouble )
Here’s are some quick links to details of the equality operators in js:
You’ll see there are actually more ways to compare values than just ==
and ===
too