Airsorted Interview Question

Can you have a function inside an Object?