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 6d38528 commit 94163e1Copy full SHA for 94163e1
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
-eachWagonsId = [2, 5, 1, 7, 4, 12, 6, 3, 13];
35
-fixListOfWagons(eachWagonsId);
+eachWagonsID = [2, 5, 1, 7, 4, 12, 6, 3, 13];
+fixListOfWagons(eachWagonsID);
36
// => [1, 7, 4, 12, 6, 3, 13, 2, 5]
37
```
38
@@ -47,9 +47,9 @@ Given this new information, write a function called `CorrectListOfWagons` that t
47
The wagon IDs of the second `array` should be added into the first `array` directly after the locomotive (ID 1).
48
49
50
-eachWagonsWieght = [1, 5, 20, 7, 4, 8];
+eachWagonsID = [1, 5, 20, 7, 4, 8];
51
missingWagons = [3, 17, 6, 15];
52
-correctListOfWagons(eachWagonsId, missingWagons);
+correctListOfWagons(eachWagonsID, missingWagons);
53
// => [1, 3, 17, 6, 15, 5, 20, 7, 4, 8]
54
55
0 commit comments