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

Tell us what’s happening:

Have no idea what is going wrong here at all. not sure exactly how to return temperate literals on this

Your code so far

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

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


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


// User Editable Region
/* file: styles.css */

Your browser information:

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

Challenge Information:

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

Hi there!

To return something in JavaScript need a return keyword.

Welcome to the forum @nickfritz168

Inside the body of the callback function, you will need to return a template literal ```` which will contain the HTML content for the player cards.

I highlighted the keyword.

Happy coding