Change Language


Follow Navioo On Twitter

||

Returns true if either the first or second expression evaluate to true.

Syntax

expressionA || expressionB

Example

var myCat = "Jasmine";
var myDog = "Jordo";
if ((myCat == "Jasmine") && (myDog=="Gus"))
    return true; //Returns true because 'myCat =="Jasmine"' is true.
text_javascript Navioo_docs

Ajax Javascript feed

↑ Grab this Headline Animator