Click on the items above to verify that their onclick handlers are attached.
Then click on the button below to add a new item to the list and see if it has an onclick handler.

Check to see that the new item does NOT have the onclick event handler.

Now we repeat this with event delegation.
Here is the button to add to the list with event delegation:

Check to see that the new item does NOT have the onclick event handler.

And we repeat again, using event delegation for only list items.
Notice that we were able to get a 'not a list item' message in the previous list, because we tested for being at an li or not in our onclick handler.
Here, because that testing is managed by the on() method, we have no handler for clicking on the ul.

Here is the button to add to the list with event delegation:

Check to see that the new item does NOT have the onclick event handler.