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.
Utilisateur anonyme
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.