本文档基于 CC协议(Creative Commons Share-Alike License)发布,是developer.mozilla.com, www.mozref.comwww.aptana.com共同劳动的成果。

!

Inverts the boolean value of the expression.

Syntax

!expressionA

Example

var myCat = "Jasmine";
if !(myCat == "Pokey")
    return true; //Returns true because the value of myCat does not equal "Pokey".