Skip to content

Instantly share code, notes, and snippets.

@rrameshbtech
Last active July 30, 2018 09:16
Show Gist options
  • Save rrameshbtech/206663a680d6b18f099938e617a979de to your computer and use it in GitHub Desktop.
Save rrameshbtech/206663a680d6b18f099938e617a979de to your computer and use it in GitHub Desktop.
How this works in nodes global
(function (exports, require, module, __filename, __dirname) {
//****Your code starts here****//
var city = 'Karur';
console.log(this.city); // undefined
console.log(city); //Karur
//****Your code ends here****//
});
var args = [self.exports, require, self, filename, dirname];
return compiledWrapper.apply(self.exports, args);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment