このようなオブジェクトを作成すると
function Person(first,last){
this.first = first;
this.last = last;
this.full = function (){
alert(this.first + " " + this.last);
}
}
obj = new Person('abdul','raziq');
このようなものをobjのプロトタイプに追加することもできますか
obj.prototype = 'some functions or anything ';
または、オブジェクトを作成したら不可能ですか?
__proto__
personオブジェクトにプロパティがあります
オブジェクト。__proto__
しかし、obj.prototypeプロパティにアクセスすると未定義ですか?
誰かが可能な限り簡単な方法で説明できますか