⚠️ Behold! This issue should be tackled after #1500 was completed.
Getting started
Here you can read about what Concept Exercises are and how they are structured:
If you have not done so yet, it is probably also helpful to do a couple of "Learning Exercises" (this is how they are called on the site) yourself. You can also look at the code of an existing concept exercise like bird-watcher (concept for-loops) for reference.
Goal
The goal here is to add a new concept object-destructering and adapt the concept exercise "Elyses Destructered Enchantments" to teach array-destructering and object-destructering but not rest-and-spread (the ... operator).
Motivation
Currently, the concept exercise "Elyses Destructered Enchantments" teaches array destructing and the rest and spread operator which also includes object related content. Now we also want to teach object destructering as a concept. Since it would be too much to also add that into the same exercise, we want to have a new split. "Elyses Destructered Enchantments" should focus on array and object destructering in the context of extracting individual elements/properties. In turn, rest and spread is covered by a new exercise that the student will complete after "Elyses Destructered Enchantments".
Tasks
New Concept
Learning objectives
The new object-destructering concept should include the following.
Out of scope
- Anything specific with arrays because there is another concept for this
About.md Ideas
- Usage in the parameters directly,
- Usage when extracting data from e.g. a JSON response
- Usage in e.g. React
How to proceed
- First accept this issue by saying "I'd like to work on this" (no need to wait for a response, just go with it)
- Use this issue to discuss any questions you have, what should be included in the content and what not and to collect reference material.
- Create a PR and set "exercism/javascript" as reviewers. Additionally you can write in #maintaining-javascript that your PR is ready for review. Once you incorporated any critical feedback that the reviewer might give you and the PR is approved, it will be merged by a maintainer.
Getting started
Here you can read about what Concept Exercises are and how they are structured:
If you have not done so yet, it is probably also helpful to do a couple of "Learning Exercises" (this is how they are called on the site) yourself. You can also look at the code of an existing concept exercise like
bird-watcher(conceptfor-loops) for reference.Goal
The goal here is to add a new concept
object-destructeringand adapt the concept exercise "Elyses Destructered Enchantments" to teacharray-destructeringandobject-destructeringbut notrest-and-spread(the...operator).Motivation
Currently, the concept exercise "Elyses Destructered Enchantments" teaches array destructing and the rest and spread operator which also includes object related content. Now we also want to teach object destructering as a concept. Since it would be too much to also add that into the same exercise, we want to have a new split. "Elyses Destructered Enchantments" should focus on array and object destructering in the context of extracting individual elements/properties. In turn, rest and spread is covered by a new exercise that the student will complete after "Elyses Destructered Enchantments".
Tasks
object-destructeringconcept (see details below)rest-and-spreadfrom the list of concepts taught by "Elyses Destructered Enchantments" in the root level config.json file...)New Concept
Learning objectives
The new
object-destructeringconcept should include the following.Out of scope
About.md Ideas
How to proceed