diff options
author | Konstantinos Lampropoulos <const_l@outlook.com> | 2022-01-03 18:18:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 00:18:07 +0800 |
commit | 334b090a4d4bca5efbe4bff513d596f91baeb115 (patch) | |
tree | a58f90b8f3d8cd81a62d3b320e4695754472a63d | |
parent | f39dcdd44e2ca0f76743ccb19316ce68da3f1ae4 (diff) |
Update javascript.html.markdown (#4178)
var => function/global , let => lexical/block scoped
-rw-r--r-- | javascript.html.markdown | 2 |
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. |