So I\'ve been reading through Javascript - The Good Parts and one thing that Crockford points out is the use weakness of global variables in Javascript, in such a way that if yo
(function (global) { global.x = 'meh'; })(window); (function () { alert(typeof x); // string })();