var mString = new String('A');
console.log(typeof mString); // object
console.log(mString instanceof String); // true
console.log(mString instanceof Object); // true
console.log(mString.__proto__ === String.prototype); // true
console.log(mString.__proto__.__proto__ === Object.prototype); // true
さて、なぜStringコンストラクタ関数(String .__ proto__)のプロトタイプは何ですか?
console.log(String.__proto__.__proto__ === Object.prototype); // true
なく
console.log(String.__proto__ === Object.prototype); // false
プロトタイプチェーンを歩いているとき?
文字列とオブジェクトのプロトタイプは何ですか?
*文字列インスタンス*と*オブジェクトプロトタイプ*の間は* Stringプロトタイプ* –
廃止予定の '.__ proto__'ゲッターは使用しないでください。代わりに 'Object.getPrototypeOf'を使用してください。 – Bergi