Pregunta de entrevista de Digium

Basic JS problems on a projected text editor