Skip to content

Commit a5523ad

Browse files
authored
Merge pull request #2486 from asamant/asamant-patch-1
Update article.md
2 parents e825d25 + 96e95bb commit a5523ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/06-advanced-functions/05-global-object

1-js/06-advanced-functions/05-global-object/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ alert(window.gVar); // 5 (became a property of the global object)
2727

2828
The same effect have function declarations (statements with `function` keyword in the main code flow, not function expressions).
2929

30-
Please don't rely on that! This behavior exists for compatibility reasons. Modern scripts use [JavaScript modules](info:modules) where such thing doesn't happen.
30+
Please don't rely on that! This behavior exists for compatibility reasons. Modern scripts use [JavaScript modules](info:modules) where such a thing doesn't happen.
3131

3232
If we used `let` instead, such thing wouldn't happen:
3333

0 commit comments

Comments
 (0)