レッスンに戻る

ANDの結果は?

重要度:5

このコードは何を示すのでしょうか?

alert( 1 && null && 2 );

答えはnullです。これはリストの先頭の偽の値だからです。

alert(1 && null && 2);