Skip to content
Merged
Show file tree
Hide file tree
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/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The function should then return the given IDs as a single `array`.

```javascript
getListOfWagons(1, 7, 12, 3, 14, 8, 5);
// => [1, 7, 12, 3, 14, 8, 3]
// => [1, 7, 12, 3, 14, 8, 5]
```

## 2. Move the first two elements to the end of the array
Expand Down Expand Up @@ -87,7 +87,7 @@ Your friend has noticed that they don't need the arrival time in the routing inf
Therefore your friend would like you to separate the arrival time from the routing information.

Implement a function `separateTimeOfArrival` that accepts an object with the routing information.
The function should return an array there the first element of the array is the arrival time and the second element is an object with the routing information without arrival time.
The function should return an array where the first element of the array is the arrival time and the second element is an object with the routing information without arrival time.

```javascript
routeInformation = {
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/train-driver/train-driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Return each wagon's id in form of an array.
*
* @param {number[]} ids
* @param {...numbers} ids
* @returns {number[]} wagon ids
*/
export function getListOfWagons(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
Expand Down