Add hint to remember this
keyword for step 48 of shopping cart project
#54602
Labels
first timers only
Open for anyone doing contributions for first time. 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
When working through the Shopping Cart Step 48, mentions the following:
And when passing the following solution:
This hint shows up:
This doesn't pass because is expecting the following:
I think adding the hint "Remember to use the
this
keyword." is a valid hint, just like in step 49 when thethis
keyword is not added in the solution.It may be repetitive, but I think the user should be informed for this possible mistake. It's already in other steps anyway.
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-oop-by-building-a-shopping-cart/step-48
Your code
Expected behavior
When passing the incorrect code from the above, add the "Remember to use the
this
keyword." hint and validation.Screenshots
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: