Skip to content

Commit 58d4329

Browse files
authored
Merge pull request #1771 from detinsley1s/patch-1
Fix typo
2 parents 63518dc + 81ea420 commit 58d4329

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/11-logical-operators/2-alert-or

1 file changed

+1
-1
lines changed

1-js/02-first-steps/11-logical-operators/2-alert-or/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ alert( alert(1) || 2 || alert(3) );
66

77
The call to `alert` does not return a value. Or, in other words, it returns `undefined`.
88

9-
1. The first OR `||` evaluates it's left operand `alert(1)`. That shows the first message with `1`.
9+
1. The first OR `||` evaluates its left operand `alert(1)`. That shows the first message with `1`.
1010
2. The `alert` returns `undefined`, so OR goes on to the second operand searching for a truthy value.
1111
3. The second operand `2` is truthy, so the execution is halted, `2` is returned and then shown by the outer alert.
1212

0 commit comments

Comments
 (0)