How to avoid namespace pollution in Javascript I found this brilliant post about namespace pollution, which notes that – beside of conflicting name definitions – using global variables may have impact on memory consumption (see also this post): “As variables lose scope, they will be eligible for garbage collection. If they are scoped globally, then…

Read More