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

An empty array is assigned the value "x" at index 3. Which statements are true? Select all that apply.

  1. The new length is 4Ճիշտ պատասխան
  2. Indexes 0 through 2 are filled with null
  3. Indexes 0 through 2 are holesՃիշտ պատասխան
  4. The new length is 1

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

Assigning at index 3 raises length to 4 and leaves indexes 0 through 2 as holes. JavaScript does not automatically fill those skipped positions with null or explicit undefined values.

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

Սկսել վարժանքը
Հարց 40: An empty array is assigned the value "x" at index 3. Which… · JavaScript Fundamentals · Questena