Assertion: prototype's function | /r/HasProperty | var studobj1
Facets:
Source sentences:
text: Example: Object's prototype function Student() { this .name = 'John' ; this .gender = 'M' ; } var studObj = new Student(); Student.prototype.sayHi= function(){ alert( "Hi" ); }; var studObj1 = new Student(); var proto = Object.getPrototypeOf(studObj1);