Airsorted interview question

Can you have a function inside an Object?