Update lessons in number sorter project to better show how inputValues
works
#54434
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
In step 7 of the project, campers create this
inputValues
arrayI think it would be more beneficial to show them the original string inputs and then walk them through converting it to numbers.
Here is my proposed plan:
updated step 7
This step should just focus on having campers use map to return dropdown.value
new step 8
This new step should have campers log out the
inputValues
so they can see for themselves that the values are strings and not numbersnew step 9
For this new step, this is when they update the
inputValues
map method to useNumber()
. Have campers check the console again to see that we are no longer dealing with strings but now dealing with numbersnew step 10
This step should be to just remove the console statement.
Then the project resumes as normal with new step 10 which is just this step here
If you are new to adding steps, please read through the documentation here
https://contribute.freecodecamp.org/#/how-to-work-on-practice-projects?id=how-to-work-on-practice-projects
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-algorithmic-thinking-by-building-a-number-sorter/step-7
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: