Pergunta de entrevista da empresa 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.

Resposta da entrevista

Sigiloso

21 de out. de 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