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

Tell us what’s happening:

i don’t understand where i might be going wrong. thanks to anyone who can help me.

Your code so far

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

/* file: styles.css */

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


  playerCards.innerHTML += arr.map(
    ({ name, position, number, isCaptain, nickname }) => {
`<div class = "player-card"></div>`
    }
  );


// 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/131.0.0.0 Safari/537.36

Challenge Information:

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

you will need to return a template literal ``

you need to return the template literal


Inside the template literals, add an empty div with a class of "player-card" .

remove the spaces around the =

1 Like

i tried removing the spaces as you suggested, but it still is telling me it’s wrong

1 Like

was that the only change you made? then you still are not returning it

1 Like

thank you so much. I just understood the mistake