Javascript Reference
Categories: Operators

javascript Operators !

@March 15, 2008, 1:22 a.m.
! Firefox/Netscape/NN 2 IE 3 ECMA 1  

  

This is the NOT operator. This unary operator evaluates to the negative value of a single Boolean operand. The NOT operator should be used with explicit Boolean values, such as the result of a comparison or a Boolean property setting.

 
Example
 
if (a == !b) {
    ...
}

Powered by Linode.