New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix grammar issues and update tests in step 38 of music player project #53700
Comments
There's slight issue with this. If the concept in this step is using the
|
If order does matter then the directions need to specify that. Otherwise, campers will not understand why this should be allowed to pass if(userData?.currentSong.id !== song.id||userData?.currentSong === null) either an update needs to be to the directions on hint text. Or both. |
What do you think? |
I like it. I would just change the first part to this Despite the use of the logical _OR_ operator, |
Checklist: <!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. --> - [x] I have read and followed the [contribution guidelines](https://contribute.freecodecamp.org). - [x] I have read and followed the [how to open a pull request guide](https://contribute.freecodecamp.org/#/how-to-open-a-pull-request). - [x] My pull request targets the `main` branch of freeCodeCamp. - [x] I have tested these changes either locally on my machine, or GitPod. <!--If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.--> Closes freeCodeCamp#53700 <!-- Feel free to add any additional description of changes below this line -->
Describe the Issue
There are a few grammar issues in this description. Plus the description can be broken up with spacing a little bit better for readability.
updated description
Also the tests are looking for a specific answer of
userData?.currentSong === null || userData?.currentSong.id !== song.id
for the condition.But I don't see why we need to specifically check for
userData?.currentSong === null
when either of these options would be validThe tests should be more flexible to allow any valid answer.
Also, order shouldn't matter here because we want to test that campers understand the concept. Not forcing a particular order here.
This should pass but currently doesn't
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-38
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: