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
Add hint to remember this
keyword for step 48 of shopping cart project
#54602
Comments
this
hint.this
hint
this
hintthis
keyword for step 48 of shopping cart project
We can open this up to This has been opened for contribution. The first comprehensive PR created will be reviewed and merged. We typically do not assign issues to anyone other than long-time contributors. If you would like to contribute and have not read the contributors docs, please do so here: https://contribute.freecodecamp.org/#/ If you have any issues with contributing, be sure to join us on the contributors channel, or on the contributors sub-forum Files that need to be changedchanges that need to be madeChange the last hint to be the following Assign the value of calling your new `.calculateTaxes()` method, passing `subTotal` as the argument, to the `tax` variable. Remember to use the `this` keyword. Happy coding |
I can do it! |
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: