Merge pull request #2213 from leviding/patch-28

FIX: change ; to ,
This commit is contained in:
Ilya Kantor 2020-10-22 23:41:58 +03:00 committed by GitHub
commit c8edd84687
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`: 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). 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. There's one more very minor difference related to the global object, that we'll cover in the next chapter.