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