Questenaتمرینی که نشان می‌دهد بعد چه چیزی را مرور کنید
سؤال 60

What does [1, [2, [3]]].flat() return with the default depth?

  1. [1, [2, [3]]]
  2. [1, 2, [3]]پاسخ درست
  3. [1, 2, 3]
  4. [1, [2], [3]]

توضیح

The default flat depth removes one nesting level, so 2 joins the outer array while the array containing 3 remains nested. Producing a completely flat result would require flattening more deeply than the default.

ادامهٔ این آزمون

شروع تمرین
سؤال 60: What does [1, [2, [3]]].flat() return with the default… · JavaScript Fundamentals · Questena