0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Skip an Array Position

A blank position in an array destructuring pattern skips that value. The commas still mark every array position.

Example

const colors = ["red", "green", "blue"]; const [firstColor, , thirdColor] = colors;

Your task

Repair the destructuring pattern so it extracts the winner and third-place name from results, skipping the second-place name. Display Selected: Mira and Nora.

Hint

An array pattern can leave a position empty.