when we create an object like this
function Person(first,last){
this.first = first;
this.last = last;
this.full = function (){
alert(this.first + " " + this.last);
}
}
obj = new Person('abdul','raziq');
could we also add to obj's prototype anything like this
obj.prototype = 'some functions or anything ';
or its not possible once we created the object ?
and there is a __proto__
property on person object
obj.__proto__
but when i access obj.prototype property its undefined ?
can someone pls explain in a simple way possible