Write a function named addXYObj that takes one argument named obj. If obj has both a property named x whose value is not undefined and one named y that is also defined, then add a new property named sum that is the sum of x and y. In either case, return obj.

javascript programming
exercise: functions 02