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

Tell us what’s happening:

Step 21
Now you will start building out the function that will show player cards based on the selections made by the user in the Filter Teammates dropdown menu.

Start by creating an empty arrow function called setPlayerCards. You do not need to add a parameter because that will be taken care of in the next step.
const setPlayerCards = () => {
};
console.log(“setPlayerCards function created”);
still not correct.

Your code so far

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

/* file: styles.css */

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

const setPlayerCards = () => {
  // Logic for showing player cards will be added here in the next steps
};

// For debugging or confirmation, you can log the function declaration
console.log("setPlayerCards function created");

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

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

Your arrow function is right. Adding a console log won’t fail it but you have to use the correct syntax. What you have put is not the correct syntax for calling the function you just declared and logging it to the console.