Learn Modern JavaScript Methods By Building Football Team Cards - Step 36

Tell us what’s happening:

Been stuck on this step for a while. It asks to:

The next step is to create a function that will detect when a user makes a selection from the playersDropdownList.

Use the .addEventListener() method on playersDropdownList. Inside the event listener, pass in a change event type and an empty callback function.

In the error I just get “Your event listener should have an empty callback function.”

I have tried to remove the word function, re-order, look at firefox guidance etc. but no luck. Maybe it’s something super simple but just rather stuck!

Your code so far

playersDropdownList.addEventListener(‘change’, function (){

});

Challenge Information:

Learn Modern JavaScript Methods By Building Football Team Cards - Step 36

Try using arrow notation.

1 Like

Knew it would be something simple! Thank you that worked a treat :smiley:

1 Like