4 ms·
The OP admits that he didn't even try to answer the question. The interviewer basically gave him the answer, but he didn't ask for help or ask if he could look
by misterjangles 13y ago
The OP admits that he didn't even try to answer the question. The interviewer basically gave him the answer, but he didn't ask for help or ask if he could look up setTimeout.
The OP's takeaway seems to be that he should have known setTimeout well enough to walk through a solution. With that approach I think anyone will have a similar experience, only it would be some other random question. The lesson learned should be to actually make the attempt and try anything at your disposal. Ask questions. Ask for hints. Don't just say "um, I don't know."