Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/concept/train-driver/.docs/hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
## 2. Move the first two elements to the end of the array

- 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.
This lets you extract the first two elements of an `array` while keeping the rest intact.
- To add another `array` into an existing `array`, you can use the `...` operator to "spread" the `array`.

## 3. Add missing values

- Using unpacking with the rest operator(`...`), lets you extract the first two elements of a `array` while keeping the rest intact.
- Using unpacking with the rest operator(`...`), you can extract the first element of an `array` while keeping the rest intact.
- To add another `array` into an existing `array`, you can use the `...` operator to "spread" the `array`.

## 4. Extend routing information
Expand Down