I have a Rect
assigned to a variable myrect:
var myrect = new Rect (250,0,20,200);
I thought that writing:
console.log(myrect.x);
would output 250 but, it says "undefined".
I would like to know how I can redraw this rectangle by performing arithmetic on its x and y coordinates.