Skip to content

Commit a60accd

Browse files
meatball133SleeplessByte
authored andcommitted
Add links
1 parent 984f960 commit a60accd

File tree

1 file changed

+6
-2
lines changed
  • exercises/concept/train-driver/.docs

1 file changed

+6
-2
lines changed

exercises/concept/train-driver/.docs/hints.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
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
@@ -26,3 +27,6 @@
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

0 commit comments

Comments
 (0)