← Questions

Explain, fix and name an unfamiliar number-formatting function

0
ModalCodingLast asked Jul 2026

The interviewer pastes a short function with no name and no comments and asks what it does. Read it out loud, then answer the follow-ups: what is wrong with it, how you would fix it, and what it should be called.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 3 credits: each one unlocks a question for good.

Your code and the AI tutor open when you unlock this question.