Skip to content

Instantly share code, notes, and snippets.

@sumanmukherjee03
Created March 8, 2013 18:19
Show Gist options
  • Save sumanmukherjee03/5118591 to your computer and use it in GitHub Desktop.
Save sumanmukherjee03/5118591 to your computer and use it in GitHub Desktop.
exercise-1
var Person = function(name) {
this.name = name;
};
Person.prototype.getName = function() {
return this.name;
};
var thomas = new Person('Thomas');
var amy = new Person('Amy');
thomas.getName.call(amy);
delete Person.prototype.getName;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment