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

Tell us what’s happening:

In your nickname case, you should call the setPlayerCards function.

Your code so far

switch (e.target.value) {
case “nickname”:
function setPlayerCards(){players.filter((player) => player.nickname !==null )}

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 (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 42

Hey @coder99 welcome to the forum post your code please

Happy new year

1 Like

iit is solved thank u :slightly_smiling_face:

@coder99

Hey there,

The players.filter() method is said to be passed as an argument to setPlayerCards function, instead you wrote that inside the setPlayersCards function, making the players.filter() method as its definition.

Happy Coding :keyboard: !

1 Like