Back to the lesson

What is the result of AND?

importance: 5

What this code is going to show?

alert( 1 && null && 2 );

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

alert( 1 && null && 2 );