var Point = (function (1
2
function Point(x, y) •
345
67
this.x = (typeof
this. y = (typeof
!== 'undefined') ? x:
I== 'undefined' ) ? y
8
Point. prototype.clone = function () ‹ return new Point(this.x, this.y);