Skip to content

Instantly share code, notes, and snippets.

@ilko725
Last active May 20, 2018 21:06
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 ilko725/f98baf2a2b6d65ccf9faf574ea49923c to your computer and use it in GitHub Desktop.
Save ilko725/f98baf2a2b6d65ccf9faf574ea49923c to your computer and use it in GitHub Desktop.
var parametr = 'huy'
var obj = {
a: function(p) { console.log('function a ' + p) },
b: function(p) { console.log('function b ' + p) },
c: function(p) { console.log('this is function c'); return this.a(p) },
};
obj.a(parametr);
obj.b(parametr);
obj.c(parametr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment