Pergunta de entrevista da empresa New York Times

I was asked to edit very low quality JavaScript. I think I lost points for not catching "errors", but the interviewer hadn't given me any requirements, even when I prompted for them. I had no way of knowing what was expected from the spaghetti code :-\

Resposta da entrevista

Sigiloso

15 de out. de 2012

I used DOM manipulation, when they apparently wanted innerHTML via Array::join. (I mentioned that templates made more sense.)

3