Tell us what’s happening:
What am I doing wrong here?? I cannot get pass this level
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.2 Safari/605.1.15
Challenge Information:
Learn Modern JavaScript Methods by Building Football Team Cards - Step 25
I think you can put stuff inside arrays. I’m aware that arrays are data structures where you can bunch elements in a list
ILM
3
you are missing the returning part
Can you be more specific?
ILM
5
I am being specific, the challenge says
you will need to return a template literal
do you remember what keyword is needed to return something from a function?
I only remember return a template literal means using `` . Please help me if I am wrong.
For returning => `` template literals, what keyword do you use to make it a return statement.
1 Like
system
Closed
8
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.