Permalink
Browse files

Merge pull request #1188 from dagolinuxoid/patch-2

typo: off -> of
  • Loading branch information...
getify committed Nov 18, 2017
2 parents c4ab888 + 377c32c commit 3f9efe8aefb6d2b8ff9db983802acf62f7905edb
Showing with 1 addition and 1 deletion.
  1. +1 −1 scope & closures/ch3.md
View
@@ -128,7 +128,7 @@ The assignment inside `bar(..)` needs to declare a local variable to use, regard
A particularly strong example of (likely) variable collision occurs in the global scope. Multiple libraries loaded into your program can quite easily collide with each other if they don't properly hide their internal/private functions and variables.
Such libraries typically will create a single variable declaration, often an object, with a sufficiently unique name, in the global scope. This object is then used as a "namespace" for that library, where all specific exposures of functionality are made as properties off that object (namespace), rather than as top-level lexically scoped identifiers themselves.
Such libraries typically will create a single variable declaration, often an object, with a sufficiently unique name, in the global scope. This object is then used as a "namespace" for that library, where all specific exposures of functionality are made as properties of that object (namespace), rather than as top-level lexically scoped identifiers themselves.
For example:

0 comments on commit 3f9efe8

Please sign in to comment.