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

Tell us what’s happening:

I don’t know what is the issue here? I wrote empty div with class of “player-card” inside the template literals. Did I place it in the wrong place?

The issue remains saying: The map callback should return a template literal that contains an empty div with a class of “player-card”.

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/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15

Challenge Information:

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

Nvm I figured it out. Didn’t know I had to be more specific about keyword

return

if you are asked to return something you have to use it, otherwise you are not returning