Operators on other types that produce boolean values
===
!==
<
>
<=
>=
0 < x < 10
❌
0 < x && x < 10
✅
But it’s very rarely needed.
And definitely don’t compare the value of a boolean expression to a boolean literal.
x === true
just write:
x
x === true === true
Or maybe?
x === true === true === true
🤔
x === false
or
x !== true
just write:
!x