Comparison Operators
Operator | Description | Example | Result |
---|---|---|---|
== | Loose Equality | 3 == "3" | true |
=== | Strict Equality | 3 === "3" | false |
!= | Loose Inequality | 3 != "3" | false |
!== | Strict Inequality | 3 !== "3" | true |
> | Greater than | 4 > 3 | true |
< | Less than | 4 < 3 | false |
>= | Greater than or equal | 4 >= 4 | true |
<= | Less than or equal | 4 <= 5 | false |
12 / 21