Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 47

A shallow array copy is made with spread from an array containing a nested object. What is shared between source and copy?

  1. The nested object referenceالإجابة الصحيحة
  2. The outer array identity
  3. Nothing at any depth
  4. Only the length property object

الشرح

Spread creates a distinct outer array but copies the nested object reference, so both arrays reach the same nested object. Calling this a deep copy incorrectly implies recursive duplication of referenced values.

تابع هذا الاختبار

بدء التدريب
السؤال 47: A shallow array copy is made with spread from an array… · JavaScript Fundamentals · Questena