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

Tell us what’s happening:

Task is to add new case for midfielder that follows the pattern of the others.What is wrong?

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

 case "midfielder":
 setPlayerCards(player.filter((player) => player.position==="midfielder"));
 break


// User Editable Region

Your browser information:

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

Challenge Information:

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

There’s a squiggly line under player. That’s an indication you made a typo. Can you see it?