Freelancer interview question

Use some enclosure on javascript code.