Added requested change

This commit is contained in:
Muhammed Zakir 2020-09-11 10:00:53 +00:00 committed by GitHub
parent 99caa80018
commit c040a90672
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, they are 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.