From 4f9ead51b27b415ed283e498bc44a61df6ba80c0 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Thu, 20 Jul 2023 22:35:48 +0800 Subject: [PATCH] Update files/en-us/web/javascript/reference/statements/var/index.md --- files/en-us/web/javascript/reference/statements/var/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/statements/var/index.md b/files/en-us/web/javascript/reference/statements/var/index.md index 7074fa0fedd910e..194d82d3d705551 100644 --- a/files/en-us/web/javascript/reference/statements/var/index.md +++ b/files/en-us/web/javascript/reference/statements/var/index.md @@ -86,7 +86,7 @@ The list that follows the `var` keyword is called a _{{glossary("binding")}} lis `var` declarations, wherever they occur in a script, are processed before any code within the script is executed. Declaring a variable anywhere in the code is equivalent to declaring it at the top. This also means that a variable can appear to be used before it's declared. This behavior is called [_hoisting_](/en-US/docs/Glossary/Hoisting), as it appears that the variable declaration is moved to the top of the function, static initialization block, or script source in which it occurs. -> **Note:** `var` declarations are only hoisted to the top of the current script. If you have two `