Boolean
Booleans are written as in Javascript
bool = true
bool = false
Logical operators
a = 1
b= 2
bool = a > 0 && b > 0
bool = a > 0 || b > 0
The negotiation
bool = !(a > 0)
bool = true
bool = !bool
bool = not bool
Last updated
Was this helpful?