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

I don’t know why my code does not work, looking closely to it, seems to be correct, but it is not right.

const setPlayerCards = (arr = "players") => {};

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 24

Hi there and welcome to our community!

Your default value for arr should be the players array which was defined earlier in your code. By using quotation marks you have given arr a default value of the string "players".

1 Like