From 334b090a4d4bca5efbe4bff513d596f91baeb115 Mon Sep 17 00:00:00 2001 From: Konstantinos Lampropoulos Date: Mon, 3 Jan 2022 18:18:07 +0200 Subject: Update javascript.html.markdown (#4178) var => function/global , let => lexical/block scoped --- javascript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3