File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
exercises/concept/train-driver/.docs Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 77
88## 1. Create a list of all wagons
99
10- - Multiple arguments in the function parameters can be packed with the ` ...<args> ` operator.
10+ - Multiple arguments in the function parameters can be packed with the [ ` ...<args> ` (spread) syntax ] [ spread-syntax ] . operator.
1111
1212## 2. Move the first two elements to the end of the array
1313
14- - Using unpacking with the rest operator(` ... ` ), lets you extract the first two elements of a ` array ` while keeping the rest intact.
14+ - You can unpack a series of parameters using [ a destructuring assignment (` ... ` )] [ destructuring-assignment ] .
15+ This lets you extract the first two elements of a ` array ` while keeping the rest intact.
1516- To add another ` array ` into an existing ` array ` , you can use the ` ... ` operator to "spread" the ` array ` .
1617
1718## 3. Add missing values
2627## 5. Separate arrival time from routing information
2728
2829- To extract a value from an ` object ` while keeping the rest intact, you can use the rest operator(` ... ` ).
30+
31+ [ spread-syntax ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
32+ [ destructuring-assignment ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
You can’t perform that action at this time.
0 commit comments