1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 11:12:21 +00:00

Update class.md

This commit is contained in:
Ke Xu 2015-12-16 17:33:06 -05:00
parent b7a766f54b
commit 2721216963

View File

@ -599,7 +599,7 @@ obj.toString(); // MyObject: [object Object]
var p1 = new Point(2, 3); var p1 = new Point(2, 3);
var p2 = new ColorPoint(2, 3, 'red'); var p2 = new ColorPoint(2, 3, 'red');
p2.__proto__ === p1.__proto // false p2.__proto__ === p1.__proto__ // false
p2.__proto__.__proto__ === p1.__proto__ // true p2.__proto__.__proto__ === p1.__proto__ // true
``` ```