返回課程

OR 的結果是什麼?

重要性:5

以下程式碼將輸出什麼?

alert( null || 2 || undefined );

答案是 2,這是第一個真值。

alert( null || 2 || undefined );