Pregunta de entrevista de Airsorted

Can you have a function inside an Object?