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

Tell us what’s happening:

Step 23
The next step is to create a new array that will be responsible for adding the player card information to the page.

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.

Your code so far

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

/* file: styles.css */

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

const arr.map(() => {
  playerCards.innerHTML += playerCards;
});
    

// 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/127.0.0.0 Safari/537.36

Challenge Information:

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

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Welcome to the forum @JYoung21

You do not need to declare the .map() method, so you can remove the const keyword.

Then read instructions and reread the instructions.

For next time, describe the issue in your own words. Learning to communicate problems is a part of becoming a web developer.

Happy coding