-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
Added filles for the new rest and spread exericse #1989
base: main
Are you sure you want to change the base?
Conversation
Dear meatball133Thank you for contributing to the JavaScript track on Exercism! 💙
Dear Reviewer/Maintainer
Automated comment created by PR Commenter 🤖. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting started with the content. I reviewed the instructions file and left some comments.
|
||
Your friend has been keeping track of how much each wagon weighs. Although they are not sure how many wagons and would like the data to be returned as an array. | ||
|
||
```exercism/note |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note blocks should not be used for the normal instructions of the exercise, only for special things that need to stand out (like the note at the top about using rest and spread).
Applies to all the tasks.
I feel like I have resolved the issues mentioned above. If not please tell me and I will give it another round |
Thank you for the work! We'll check it out. |
Could some one go through with me why errors are raised? The changes I made should not have caused this. |
Sorry I didn't see this. Seems you managed to solve this yourself! For future contributions, on this track repository you can post a comment with |
I see, no problem. But thanks for the tip. I made some commits to some other tracks, so I learnt there how the config file needs to be setup. |
I'll pick up the reviewing here :) |
|
||
## 1. Create a list of all wagons | ||
|
||
- Multiple arguments in the function parameters can be packed with the `...<args>` operator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Multiple arguments in the function parameters can be packed with the `...<args>` operator. | |
- Multiple arguments in the function parameters can be packed with the [`...<args>` (spread) syntax][spread-syntax]. |
|
||
## 2. Move the first two elements to the end of the array | ||
|
||
- Using unpacking with the rest operator(`...`), lets you extract the first two elements of a `array` while keeping the rest intact. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Using unpacking with the rest operator(`...`), lets you extract the first two elements of a `array` while keeping the rest intact. | |
- You can unpack a series of parameters using [a destructuring assignment (`...`)][destructuring assignment]. | |
This lets you extract the first two elements of a `array` while keeping the rest intact. |
Resolve #1500
This is the start for the exercise. There is still some stuff that I haven't started on like hints and design.
It is because I think they require that the rest is more or less finished.