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

case “forward”:setPlayerCards(players.filter(player => {player.position === forward}))
this is what i interpret the code to say and i dont get where im going wrong please help me withan link to see where actually is that i not interpreting clearly what been said

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.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge Information:

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

You need to emplicitly return the result of player position equal to forward.

how exactly do i emplicitly return it cause in my mind
{player.position == forward} this is what comes to mind

1 Like

You don’t need to use this {}

Sorry, your code does not pass. Hang in there.

Your filter() callback should implicitly return the result of checking if player.position is forward.
and my code is
case “forward”:setPlayerCards(players.filter((player) => player.position == forward)

);break;
still not sure of where im going wrong

1 Like

both of your forward need to be a string

“forward”

Thank u i have solved the problem and im done thank u truly

1 Like

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