Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Line 1217: coallescing => coalescing
  • Loading branch information
machineloop committed Oct 21, 2015
1 parent 968ff4d commit 7b53292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types & grammar/ch4.md
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ foo(); // "hello world"
foo( "yeah", "yeah!" ); // "yeah yeah!"
```

The `a = a || "hello"` idiom (sometimes said to be JavaScript's version of the C# "null coallescing operator") acts to test `a` and if it has no value (or only an undesired falsy value), provides a backup default value (`"hello"`).
The `a = a || "hello"` idiom (sometimes said to be JavaScript's version of the C# "null coalescing operator") acts to test `a` and if it has no value (or only an undesired falsy value), provides a backup default value (`"hello"`).

**Be careful**, though!

Expand Down

0 comments on commit 7b53292

Please sign in to comment.