Pregunta de entrevista de SSENSE

A pieces of JS code asking you to debug, quite easy