Fix typo
Changed "it's" to "its" since that is the correct spelling of the possessive form of "it."
This commit is contained in:
parent
405150f1f2
commit
81ea42015b
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ alert( alert(1) || 2 || alert(3) );
|
|||
|
||||
The call to `alert` does not return a value. Or, in other words, it returns `undefined`.
|
||||
|
||||
1. The first OR `||` evaluates it's left operand `alert(1)`. That shows the first message with `1`.
|
||||
1. The first OR `||` evaluates its left operand `alert(1)`. That shows the first message with `1`.
|
||||
2. The `alert` returns `undefined`, so OR goes on to the second operand searching for a truthy value.
|
||||
3. The second operand `2` is truthy, so the execution is halted, `2` is returned and then shown by the outer alert.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue