Private Global Scope



examples/functions/private_scope.js
(function() {
    "use strict";

    var me = 'Foo';
    var greet = function (name) {
        return 'Hello ' + name;
    }
    var res = greet(me);

    console.log(res);  // Hello Foo
}())