You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: questions/explain-hoisting/en-US.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The following behavior summarizes the result of accessing the variables before t
29
29
30
30
## Hoisting
31
31
32
-
Hoisting is a term used to explain the behavior of variable declarations in JavaScript code.
32
+
Hoisting is a term used to explain the behavior of variable declarations in JavaScript code.
33
33
34
34
Variables declared or initialized with the `var` keyword will have their declaration "moved" up to the top of their containing scope during compilation, which we refer to as hoisting.
35
35
@@ -124,7 +124,7 @@ In ECMAScript specifications `let` and `const` declarations are [explained as be
124
124
125
125
> The variables are created when their containing Environment Record is instantiated but may not be accessed in any way until the variable's LexicalBinding is evaluated.
126
126
127
-
However, this statement is [a litle bit different for the `var` keyword](https://tc39.es/ecma262/#sec-variable-statement):
127
+
However, this statement is [a little different for the `var` keyword](https://tc39.es/ecma262/#sec-variable-statement):
128
128
129
129
> Var variables are created when their containing Environment Record is instantiated and are initialized to `undefined` when created.
0 commit comments