We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ae91d commit 6d38528Copy full SHA for 6d38528
exercises/concept/train-driver/.docs/instructions.md
@@ -31,8 +31,8 @@ Implement a function `fixListOfWagons` that accepts an array of the id of each w
31
It `return` an `array` where the 2 first elements repositioned to the end of the `array`.
32
33
```javascript
34
-eachWagonsWieght = [2, 5, 1, 7, 4, 12, 6, 3, 13];
35
-fixListOfWagons(eachWagonsWieght);
+eachWagonsId = [2, 5, 1, 7, 4, 12, 6, 3, 13];
+fixListOfWagons(eachWagonsId);
36
// => [1, 7, 4, 12, 6, 3, 13, 2, 5]
37
```
38
@@ -49,7 +49,7 @@ The wagon IDs of the second `array` should be added into the first `array` direc
49
50
eachWagonsWieght = [1, 5, 20, 7, 4, 8];
51
missingWagons = [3, 17, 6, 15];
52
-correctListOfWagons(eachWagonsWieght, missingWagons);
+correctListOfWagons(eachWagonsId, missingWagons);
53
// => [1, 3, 17, 6, 15, 5, 20, 7, 4, 8]
54
55
0 commit comments