x = 3; var Point = function (x, y) { this.x = x; this.y = y; } p = Point(1,2); print("x is " + x); print("p.x() is: " + p.x());
Output