A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/operators/logical_and below:

logical and ยท WebPlatform Docs

logical and Summary

Performs a logical conjunction on two expressions.

Syntax
result = expression1 && expression2
result
Any variable.
expression1
Any expression.
expression2
Any expression.
Examples
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:

Attributions

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