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

Tell us what’s happening:

You should assign arr.map() to the playerCards.innerHTML using the += operator

Your code so far

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

Your browser information:

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

Challenge Information:

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

1 Like

Add spaces to both sides of the addition assignment += operator.


It is likely a regex test that doesn’t account for the lack of spaces. Also, you should write your code like that anyway.

3 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.