This is an example of how an event listener can be used. For this case an "onchange" HTML attribute is used to call a different function every time there is a change on the options from a drop down list.