We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b333262 commit ab3d9beCopy full SHA for ab3d9be
README.md
@@ -26,22 +26,30 @@ console.log(multiply(5,10)) // 50
26
## Scope
27
28
* Global scope
29
-* Local Scope
+* Local scope
30
* Function scope
31
* Block scope
32
-* Function hoisting and scopes
33
-* Functions do not have access to each other's scopes
34
-* Nested scopes
+* Function hoisting and scope
+* Functions do not have access to each other's scope
+* Nested scope
35
+
36
+**Global scope**
37
38
+If a variable is declared outside all functions or curly braces `({})`, it is said to be defined in the global scope.
39
40
+```javascript
41
+const globalVariable = 'some value';
42
+```
43
44
## Closure
45
46
Clousure is the functions that have access to the parent scope, even when the parent function has closed.
47
48
For every closure there are 3 scopes:
49
-* Local Scope ( Own scope)
-* Outer Functions Scope
-* Global Scope.
50
+* Local scope ( Own scope)
51
+* Outer functions scope
52
+* Global scope
53
54
## Function Delegates
55
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments