The logical AND operator

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 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset