Build Football Team Cards

Step 25
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.

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

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

:worried: - received a response that my code does not pass. also gave a hint: The map callback should return a template literal that contains an empty div with a class of "player-card" .

don’t know what is wrong. anyone to assist?

Can you provide a link to the project please?

what’s the fifth word of the hint?

You have two issues. Both were called out in the hint.

– removed by mod

thanks. got it. have amend

Glad you got it, please do not post solution code to the forum, thank you

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.