artdaq_node_server
v1_00_07
|
function Shape() { this.x = 0; this.y = 0; }
function Circle() { Shape.call(this); }
Circle.prototype = _.create(Shape.prototype, { 'constructor': Circle });
var circle = new Circle; circle instanceof Circle; // => true
circle instanceof Shape; // => true