FIX: change ; to ,

This commit is contained in:
LeviDing 2020-10-18 22:23:10 +08:00 committed by GitHub
parent d6e88647b4
commit ca1ef0d734
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`:
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.