QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 48

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

  1. a
  2. cՃիշտ պատասխան
  3. b
  4. undefined

Բացատրություն

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.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 48: Given source = ["a", "b", "c"], destructuring uses [first,… · JavaScript Fundamentals · Questena