We want to make this open-source project available for people all around the world.

Help to translate the content of this tutorial to your language!

BuyEPUB/PDF
Share
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);

AltStyle によって変換されたページ (->オリジナル) /