New York Times Interview Question

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 :-\

Interview Answer

Anonymous

Oct 15, 2012

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

3