function Point(x,y){ return {x:x, y:y}; } var p1 = Point(3,4); var p2 = Point(5,6);
Output: