Assertion: prototype's function | /r/HasProperty | console.log(this.name
Facets:
Source sentences:
text: function Person(name){ this.name = name; } Person.prototype.getName = function(){ console.log(this.name); } var person = new Person("George");
text: function Person(name){ this.name = name; } my_person_prototype = { getName: function(){ console.log(this.name); } };