Pregunta de entrevista de Trading Technologies

There were several small simple-to-complex puzzles for refactoring or rewriting JavaScript code fragments for efficiency. For example, one of the code fragments had event-listeners attached to all elements of a list.

Respuesta de la entrevista

Anónimo

21 oct 2017

I refactored the code on paper. For the specific puzzle I attached the event listener to the list-item's parent element rather than each item.

1