Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 789 Bytes

File metadata and controls

34 lines (21 loc) · 789 Bytes

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"

What is the result of AND?

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 );