Performs a logical conjunction on two expressions.
Syntaxresult = expression1 && expression2
console.log(true && true);
console.log(true && false);
console.log(false && true);
console.log(false && (3 == 4);
console.log("Cat" && "Dog");
console.log(false && "Cat");
console.log("Cat" && false);
Remarks
If both expressions evaluate to true, result is true. If either expression evaluates to false, result is false.
JavaScript uses the following rules for converting non-Boolean values to Boolean values:
Microsoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4