All tests for the for...of
loop in the Dice game should allow campers to use let
or const
#54065
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
We had this issue on the forum where the camper was unable to pass the test for step 71 with the following code.
https://forum.freecodecamp.org/t/learn-intermediate-algorithmic-thinking-by-building-a-dice-game-step-71/679051
The test is expecting the use of
const
inside the loop. Butlet
is valid too.After a quick scan of the final solution, it looks like the
for...of
loop is used four times.I have checked the tests, but it is possible that all 4 instances have the same issue where
const
is expected.Update all 4 instances of the
for...of
tests to accept the use oflet
orconst
Affected Page
multiple pages
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: