The logical AND operator returns true if both operands are true; otherwise, it returns false.
Here is a prototype:
varA && varB
Here is a example:
var x = true var y = false var z = x && y //z equals false
The logical AND operator returns true if both operands are true; otherwise, it returns false.
Here is a prototype:
varA && varB
Here is a example:
var x = true var y = false var z = x && y //z equals false