From ca1ef0d7343b1817af4e46bb4d5e72cb0ff2a0c0 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Sun, 18 Oct 2020 22:23:10 +0800 Subject: [PATCH] FIX: change ; to , --- 1-js/06-advanced-functions/04-var/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/04-var/article.md b/1-js/06-advanced-functions/04-var/article.md index b2559989..2dd1bf61 100644 --- a/1-js/06-advanced-functions/04-var/article.md +++ b/1-js/06-advanced-functions/04-var/article.md @@ -279,7 +279,7 @@ In all the above cases we declare a Function Expression and run it immediately. There are two main differences of `var` compared to `let/const`: -1. `var` variables have no block scope; their visibility is scoped to current function, or global, if declared outside function. +1. `var` variables have no block scope, their visibility is scoped to current function, or global, if declared outside function. 2. `var` declarations are processed at function start (script start for globals). There's one more very minor difference related to the global object, that we'll cover in the next chapter.