Fix tests for step 25 of Football team cards to allow for arrow function callbacks or regular functions #54380
Labels
help wanted
Open for all. You do not need permission to work on these.
new javascript course
These are for issues dealing with the new JS curriculum
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
type: bug
Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Describe the Issue
A camper on the forum ran into an issue here
https://forum.freecodecamp.org/t/learn-modern-javascript-methods-by-building-football-team-cards-step-25/685021
They wanted to know why they couldn't pass with a regular function for the callback.
the directions don't specify it should be an arrow function instead.
but both answers should pass.
So the tests should be updated.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-modern-javascript-methods-by-building-football-team-cards/step-25
Your code
see explanation above
Expected behavior
see explanation above
Screenshots
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: