Tell us what’s happening:
My code seems to do everything it is supposed to do but I’m failing on test 11 and 12, which is weird because it IS actually showing all the players when “all” is selected and IS showing the correct players if “forward” is selected. I don’t see any errors either so I feel like I may not have solved the issue the way I was supposed to or something?
Is my code not going through because all of the players are also in my HTML? Should I just always generate them in JS?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Challenge Information:
Build a Set of Football Team Cards - Build a Set of Football Team Cards
Please share all of your code.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
I went through the instructions again, instead of the tests and figured out that the only issue was that I didn’t include “(Captain)” in my player card. So I added a check in my code for it.
I wasn’t able to edit my post to include the code when I had the issue, but I hope this may help someone in the future!
Glad you got it sorted. You could have just replied to my post with your code.
In the future, if you have a question or need some help with a specific challenge as it relates to the code you wrote, you can click the Get Help > Ask for Help button, which will appear on the challenge after you have attempted to submit at least three times.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
Thank you.
1 Like