Finish the function definition below.
Given an object
person with keys
lastName, the function
getFullName should return a string which combines
lastName separated by a space.
- If the firstName doesn’t exist, return just the lastName as the full name
- If the lastName doesn’t exist, return just the firstName as the full name
- If both firstName and lastName don’t exist, return
""as the full name.