Sam95
March 19, 2024, 5:19pm
1
Tell us what’s happening:
I need help to complete this stage
Your code so far
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
const setPlayerCards = (arr = players) => {
arr.map(() => {
playerCards.innerHTML += arr
})
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Challenge Information:
Learn Modern JavaScript Methods by Building Football Team Cards - Step 25
Learn to Code — For Free
a2937
March 19, 2024, 7:00pm
2
What are you having trouble with? Are you getting any error messages? Are any of the instructions confusing? The more you explain, the easier it will be to help you.
map
returns a new array.
That array is what you should assign to the innerHTML
element property using the addition assignment +=
operator.
For now, the map
callback function body should be empty.
Sam95
March 20, 2024, 6:00pm
4
the error keeps saying “Your .map()
method should take an empty callback function.” after I rewrote the code to
playerCards.innerHTML += arr.map();
ILM
March 20, 2024, 6:01pm
5
now you need to add an empty callback, that is an arrow function with no parameters and an empty body
system
Closed
September 19, 2024, 6:01am
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.