Learn Modern JavaScript Methods by Building Football Team Cards - Step 33

Tell us what’s happening:

I keep getting this message
Your event listener should listen for the “change” event.
Know I missing something simple. I also tried
playersDropdownList.addEventListener(“change”() => {});

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

playersDropdownList.addEventListener(("change") => {});
  


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

Learn Modern JavaScript Methods by Building Football Team Cards - Step 33

The string with change in it should be the first parameter of the addEventListener call. The arrow function should be the second.

playersDropdownList.addEventListener(“change”() => {});
Gives me this message. Your event listener should have an empty callback function.

1 Like

You forgot the comma after the click string.

Thanks man. this helped out a lot.