Learn JavaScript
Array Destructuring
34.2
Lesson

Ignoring Elements

We can ignore elements of the array with the help of an extra comma.

In the example given below, we store the first element in the variable first, skip the second element and store the third element in the variable third.