This repository has been archived by the owner on Sep 25, 2019. It is now read-only.
fix(challenges): fix confusing destructuring es6 challenge #246
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ISSUES CLOSED: #213
Description
I updated ES6: Use Destructuring Assignment to Assign Variables from Objects so that it no longer requires the user to understand the difference between string primitives and string objects. It now follows the same theme as the challenge that follows.
This is the new
contents
of the challenge:And this is a solution:
I tested this on my local environment that was running the freeCodeCamp and learn repos.
Note: The code that I actually changed begins on line 707 and continues through line 753.
Pre-Submission Checklist
dev
branch.fix/
,feature/
, ortranslate/
(e.g.fix/challenge-tests
)npm test
.npm run commit
to generate a conventional commit message.Learn more here: https://conventionalcommits.org/#why-use-conventional-commits
If they were done on the web interface you have ensured that you are creating conventional commit messages.
Checklist:
Closes #213