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

Tell us what’s happening:

playerCards.innerHTML += arr.map(
({ name, position, number, isCaptain, nickname }) =>
{ <div class="player-card"></div> }
);
I don’t understand the “return” part of the instructions. I have tried several differnt ways. Could someone please 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

Challenge Information:

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

what issue are you having with the “return” part?

do you remember how you have written so far the return statement of a function?

I just don’t know what it means… I am so confused and frustrated

you don’t know what it means for a function to return a value?

you may want to move to the full stack certification, it’s much more comprehensive, and may help clear this doubt, it should have been a known thing by now

thank you so much for all you help