QuestenaPráctica que te muestra qué repasar después
Pregunta 48

Given source = ["a", "b", "c"], destructuring uses [first, , third]. What value is assigned to third?

  1. a
  2. cRespuesta correcta
  3. b
  4. undefined

Explicación

Array destructuring follows position, and the skipped middle position leaves "b" unassigned while third receives "c". Skipping a binding does not remove the corresponding element from source.

Continúa con este test

Empezar la práctica
Pregunta 48: Given source = ["a", "b", "c"], destructuring uses [first,… · JavaScript Fundamentals · Questena