Skip to content

Instantly share code, notes, and snippets.

@masnun
Last active December 19, 2015 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masnun/6024857 to your computer and use it in GitHub Desktop.
Save masnun/6024857 to your computer and use it in GitHub Desktop.
(function (text) {
this.text = text;
this.greet = function (closure) {
closure("Hello " + this.text + "!")();
}
return this;
})('Javascript').greet(function (text) {
return function () {
console.log(text);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment