back to the lesson

What is the result of AND?

importance: 5

What is this code going to show?

alert( 1 && null && 2 );

The answer: null, because it’s the first falsy value from the list.

alert(1 && null && 2);