Update description and tests for step 34 of music player #53701
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 step asks campers to check if
userData?.currentSong
isnull
.But I don't see why we need to just check for null here.
This should also be an acceptable answer
I don't see the need to only check for null.
We should just check if
userData?.currentSong
is falsey. That will allow for multiple correct answers instead of one.Update the description and tests here to allow for multiple valid conditions instead of just one.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-string-and-array-methods-by-building-a-music-player/step-34
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: