Skip to content

Instantly share code, notes, and snippets.

@koleksiuk
Created June 14, 2012 22:32
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 koleksiuk/2933422 to your computer and use it in GitHub Desktop.
Save koleksiuk/2933422 to your computer and use it in GitHub Desktop.
function Test() {
this.nazwa = "test";
}
Test.prototype.a = function() {
console.log(this.nazwa);
return "lol";
}
Test.prototype.b = function() {
console.log(this.a());
}
my = new Test();
my.b();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment