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>
;
}
);
- 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?