Skip to content

Commit cd8dd53

Browse files
#3345 Fixed Grammar
1 parent af71856 commit cd8dd53

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/12-nullish-coalescing-operator

1 file changed

+1
-1
lines changed

Diff for: 1-js/02-first-steps/12-nullish-coalescing-operator/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ alert(firstName || lastName || nickName || "Anonymous"); // Supercoder
7676
*/!*
7777
```
7878
79-
Historically, the OR `||` operator was there first. It exists since the beginning of JavaScript, so developers were using it for such purposes for a long time.
79+
Historically, the OR `||` operator was there first. It's been there since the beginning of JavaScript, so developers were using it for such purposes for a long time.
8080
8181
On the other hand, the nullish coalescing operator `??` was added to JavaScript only recently, and the reason for that was that people weren't quite happy with `||`.
8282

0 commit comments

Comments
 (0)