var MODULE = function () { var my = {}; privateProperty = 'Hello Closure'; function privateMethod() { document.write(privateProperty + "<br />"); }; my.publicProperty = 'Hello '; my.publicMethod = function () { privateMethod(); document.write( my.publicProperty + " public method."); }; return{ say : function () { my.publicMethod(); } }; // return my; }(); MODULE.say();
11-09