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

Tell us what’s happening:

the test doesnt accept it, I feel lik this is correct, but it still says that the code did not pass.

Your code so far

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

/* file: styles.css */

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

playerCards.innerHTML += arr.map()


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Challenge Information:

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

The instructions: 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.
You did it wrong. Reset the challenge step and use map on arr within the map create a callback function. Then use the addition assignment operator to set that arr.map(callbackfunc) to the playerCards.innerHTML

I seem to may have followed yours and systems instructions correctly.

it says

Your .map() method should take an empty callback function.

I found it out , it should be the ()=>{}
my understanding was a literal empty callback function.

2 Likes

this is a literal empty function. Leaving the parenthesis of map empty means you are not giving it an argument at all