Many comparison operators we know from maths:
Greater/less than: a > b, a < b.
a > b
a < b
Greater/less than or equals: a >= b, a <= b.
a >= b
a <= b
Equality check is written as a == b (please note the double equation sign =. A single symbol a = b would mean an assignment).
a == b
Not equals. In maths the notation is ≠, in JavaScript it’s written as an assignment with an exclamation sign before it: a != b.
There was an error while loading. Please reload this page.