function Shape(color){ this.x = 4; this.y = 4; this.color = color; this.move = function(dx, dy){ this.x+=dx; this.y+=dy;
function Circle(color){ this.r = 2; this.color = color;
Circle.prototype = new Shape(); function Square(color){ this.a = 2; this.color = color;
Square.prototype = new Shape(); var myćircle = new Circle("black"); var mySquare = new Square("red");