3 ms·
Alternatively, if you're only supporting modern-ish browsers, Point3d.prototype = Object.create(Point.prototype); which does the same thing but does not r
by masklinn 14y ago
Alternatively, if you're only supporting modern-ish browsers,
Point3d.prototype = Object.create(Point.prototype);
which does the same thing but does not require multiple statements (and allows adding property definitions as the second argument)