(Fix test bug): Step 86 of "Building a Platformer Game" #54541
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
The code provided below should pass; it doesn't.
As to why it doesn't pass, the hint message is not clear enough in terms of its wording, assuming that the test is to remain.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-intermediate-oop-by-building-a-platformer-game/step-86
Your code
Expected behavior
The callback passed into the
every()
method checks whether eachrule
element of thecollisionDetectionRules
array is strictly equal totrue
.I assumed that this is what the instruction is asking for.
The hint message also suggests that because "is true" indicates "identity" instead of "evaluate to".
After figuring out what the test is looking for, I understood that the test looks for a returned value that evaluates to
true
, which would also include truthy values.If that is the case, I suggest either modifying the test to allow strict equal as well or updating the instruction to hint at what the test is looking for specifically.
Screenshots
System
Additional context
No response
The text was updated successfully, but these errors were encountered: