Learn Modern JavaScript Methods By Building Football Team Cards - Step 26

I was told to add 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 this is my code so far can someone Please point out what is wrong with it

### Your code so far

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

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 26

1 Like

You are assigning a value to playerCards.innerHTML, the receiver of a value is on the left-hand side of the assignment +=.

receiver += "Some value"
element.property += someArray.map(() => {})
1 Like

So yeah I did this myself, but it’s still failing, even though I think it should be correct.

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

Edit
After saving and reloading the page it works.

I’m trying to find out if anyone is having issues with saving the code for this step in the Building Football Team Cards project. I’m posting here because the step # is different. Here is my code in the screenshot. I’m not sure why it’s not saving and letting me move forward.

Any help would be great. Thank you again

In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.