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

Tell us what’s happening:

I can’t seem to find the error with this code, I’ve checked the forum posts and some instructionals. I’m not sure what’s going on, this seems like a simple step.

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 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0

Challenge Information:

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

Welcome to the forum @publiclyviewed

The map callback should return a template literal that contains an empty div with a class of "player-card" .

I highlighted the keyword.

Happy coding

1 Like

Thanks! First face-smack :confused: