Skip to content

Commit 2b716b1

Browse files
committed
javascript-101/scope.md: misspelling
1 parent 2b38106 commit 2b716b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/javascript-101/scope.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ myFunc();
4949
console.log( x ); // 5
5050
```
5151

52-
This is a bad idea. Any variable that is global can have its value changed by any other parts of a program or any other script. This is undesirable, as it could lead to unforseen side effects.
52+
This is a bad idea. Any variable that is global can have its value changed by any other parts of a program or any other script. This is undesirable, as it could lead to unforeseen side effects.
5353

5454
Secondly, Immediately-Invoked Function Expressions provide a way to avoid global variables. You'll see many libraries such as jQuery often use these:
5555

0 commit comments

Comments
 (0)