Home › Forums › JavaScript › Learning JS › Reply To: Learning JS
September 22, 2014 at 1:38 pm
#184154
Participant
You might wonder why I’m not putting the listener on the button
itself. This is because we have some unknown number of buttons (depending on how many comments there are), and this allows us to attach only one event listener to handle all of them.