summaryrefslogtreecommitdiffhomepage
path: root/javascript.html.markdown
diff options
context:
space:
mode:
authorKonstantinos Lampropoulos <const_l@outlook.com>2022-01-03 18:18:07 +0200
committerGitHub <noreply@github.com>2022-01-04 00:18:07 +0800
commit334b090a4d4bca5efbe4bff513d596f91baeb115 (patch)
treea58f90b8f3d8cd81a62d3b320e4695754472a63d /javascript.html.markdown
parentf39dcdd44e2ca0f76743ccb19316ce68da3f1ae4 (diff)
Update javascript.html.markdown (#4178)
var => function/global , let => lexical/block scoped
Diffstat (limited to 'javascript.html.markdown')
-rw-r--r--javascript.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown
index 3c0e6d4f..b290b553 100644
--- a/javascript.html.markdown
+++ b/javascript.html.markdown
@@ -590,7 +590,7 @@ if (Object.create === undefined){ // don't overwrite it if it exists
// ES6 Additions
// The "let" keyword allows you to define variables in a lexical scope,
-// as opposed to a block scope like the var keyword does.
+// as opposed to a function scope like the var keyword does.
let name = "Billy";
// Variables defined with let can be reassigned new values.