From 06a249eb6f2067c3bf8c124f9d60e00ab7f2196b Mon Sep 17 00:00:00 2001 From: Roman Morozov <577222+sublimeye@users.noreply.github.com> Date: Tue, 28 Jan 2025 02:45:49 -0800 Subject: [PATCH] chore(hoisting): fix typo (#15) --- questions/explain-hoisting/en-US.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions/explain-hoisting/en-US.mdx b/questions/explain-hoisting/en-US.mdx index edf3b8b..df45e37 100644 --- a/questions/explain-hoisting/en-US.mdx +++ b/questions/explain-hoisting/en-US.mdx @@ -118,7 +118,7 @@ import foo from './modules/foo'; ## Under the hood -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 ``. Thus, accessing them will cause a `ReferenceError` preventing you to access them before initialization. +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 ``. Thus, accessing them will cause a `ReferenceError` preventing you to access them before initialization. In ECMAScript specifications `let` and `const` declarations are [explained as below](https://tc39.es/ecma262/#sec-let-and-const-declarations):