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

Tell us what’s happening:

Instruction:

Inside the setPlayerCards function, start by adding the map method to arr that will take in an empty callback function. Then, use the addition assignment += operator to assign the new array to playerCards.innerHTML.

Remember that the innerHTML property gets, or in this case, sets the HTML markup for the playerCards element.

What I wrote:

playerCards.innerHTML += arr.map();

Code does not pass. What did I do wrong?Note: I know the code that got uploaded has a map(x), I was just testing that out. It doesn’t work with arr.map() or arr.map(x);

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

playerCards.innerHTML += arr.map(x);


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

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

you are missing the empty callback function