function Point(x,y){ return {x:x, y:y}; } var p = Point(3,4);
Output: