SanthoshRaghav
7/25/2018 - 11:43 PM

&& (AND)

1)Evaluate operands from left to right. !h 2)For each operand, convert it to a boolean. If the result is false, stop and return the original value of that operand. 3)If all other operands have been assessed (i.e. all were truthy), return the last operand.

alert( true && true );   // true
alert( false && true );  // false
\!h alert( true && false );  // false
alert( false && false ); // false