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