Tell us what’s happening:
I am running this code exactly as this step is saying:
Still i’m getting error can some look through my code and point out the error and solution for it.
Your code so far
WARNING
Sorry, your code does not pass. Don’t give up.
You should add a new paragraph element with the text Nickname:
playerCards.innerHTML += arr.map(
({ name, position, number, isCaptain, nickname }) => {
`
<div class="player-card">
<h2>${name} ${isCaptain ? "(Captain)" : ""}</h2>
<p>Position: ${position}</p>
<p>Number: ${number}</p>
<p>Nickname: ${nickname}</p>
</div>
`;
}
);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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 33