Skip to content

Commit 94163e1

Browse files
committed
Update instructions.md
1 parent 6d38528 commit 94163e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Implement a function `fixListOfWagons` that accepts an array of the id of each w
3131
It `return` an `array` where the 2 first elements repositioned to the end of the `array`.
3232

3333
```javascript
34-
eachWagonsId = [2, 5, 1, 7, 4, 12, 6, 3, 13];
35-
fixListOfWagons(eachWagonsId);
34+
eachWagonsID = [2, 5, 1, 7, 4, 12, 6, 3, 13];
35+
fixListOfWagons(eachWagonsID);
3636
// => [1, 7, 4, 12, 6, 3, 13, 2, 5]
3737
```
3838

@@ -47,9 +47,9 @@ Given this new information, write a function called `CorrectListOfWagons` that t
4747
The wagon IDs of the second `array` should be added into the first `array` directly after the locomotive (ID 1).
4848

4949
```javascript
50-
eachWagonsWieght = [1, 5, 20, 7, 4, 8];
50+
eachWagonsID = [1, 5, 20, 7, 4, 8];
5151
missingWagons = [3, 17, 6, 15];
52-
correctListOfWagons(eachWagonsId, missingWagons);
52+
correctListOfWagons(eachWagonsID, missingWagons);
5353
// => [1, 3, 17, 6, 15, 5, 20, 7, 4, 8]
5454
```
5555

0 commit comments

Comments
 (0)