Skip to content

Commit 06a249e

Browse files
authored
chore(hoisting): fix typo (#15)
1 parent 58458e8 commit 06a249e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

questions/explain-hoisting/en-US.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ import foo from './modules/foo';
118118

119119
## Under the hood
120120

121-
In reality, JavaScript creates all variables in the current scope before it even tries to executes the code. Variables created using `var` keyword will have the value of `undefined` where variables created using `let` and `const` keywords will be marked as `<value unavailable>`. Thus, accessing them will cause a `ReferenceError` preventing you to access them before initialization.
121+
In reality, JavaScript creates all variables in the current scope before it even tries to execute the code. Variables created using `var` keyword will have the value of `undefined` where variables created using `let` and `const` keywords will be marked as `<value unavailable>`. Thus, accessing them will cause a `ReferenceError` preventing you to access them before initialization.
122122

123123
In ECMAScript specifications `let` and `const` declarations are [explained as below](https://tc39.es/ecma262/#sec-let-and-const-declarations):
124124

0 commit comments

Comments
 (0)