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 aarraywhile keeping the rest intact.
However, for this task, we only need to extract the first element—locomotive.