Typo in hints for 'Train Driver' exercise

There seems to be a typo in hints for task 3 of ‘Train Driver’ exercise in the JavaScript track:

Using unpacking with the rest operator(...), lets you extract the first two elements of a array while keeping the rest intact.

However, for this task, we only need to extract the first element—locomotive.

Ah yes. This exercise changed a bit since it’s publishing (by me, ha). It should be something like:

Using unpacking with the rest operator(... ), you can extract the first element of an array while keeping the rest intact.

1 Like

I opened the PR with a fix: Fix typos in hints for 'Train Driver' exercise by mytiador · Pull Request #2796 · exercism/javascript · GitHub

I also changed ‘a array’ to ‘an array’ in the hint for task 2.

1 Like

Merged! Thank you.

1 Like