alert-1-null-2"
- <a href="alert-1-null-2.html" alert-1-null-2" /alert-1-null-2" alert-1-null-2alert-1-null-2"
alert-1-null-2" /alert-1-null-2" /alert-1-null-2" ask/alert-1-null-2"k%2Falert-1-null-2"%2Falert-1-null-2"
<a href="../logical-operators.html" Logical operators
<a href="../logical-operators.html"
importance: 5
What is this code going to show?
alert( 1 && null && 2 );
solution
The answer: null, because it’s the first falsy value from the list.
<a href="alert-1-null-2.html#"
alert( 1 && null && 2 );