JavaScript » Logical » !

This is the logical NOT operator which returns false if its single operand can be converted to true, or if it is a non-Boolean value and true if its operand can be converted to false.

Examples

Code:
x = !(a == c)
x = !"cheese"
Explanation:

These examples return false.

Code:
x = !(a > b)
Explanation:

This example returns true.