Modern JavaScript (ES2020+)

This JavaScript quiz checks the features added since ES2020 that now show up in everyday code and interviews. You will predict output for Array.prototype.at, Object.groupBy, structuredClone, BigInt and numeric separators, together with ?. and ??.

ปานกลาง 10 ข้อ ~6 นาที ผ่านที่ 80% Node.js 22

เลือกโหมด

กำลังเล่นแบบผู้เยี่ยมชม: เข้าสู่ระบบเพื่อเก็บ XP และ streak

ตัวอย่างคำถาม

ข้อ 1 จาก 10

What does this print?

console.log([10, 20, 30].at(-1), "hello".at(0));
ดูเฉลย

D. 30 h .at() accepts negative indexes that count from the end, so at(-1) is the last item. It works on strings too, and at(0) is simply the first character.

ควิซนี้มีเนื้อหาอะไรบ้าง

  • Negative indexes with .at()
  • Grouping arrays with Object.groupBy()
  • Deep copies with structuredClone()
  • BigInt and the limits of Number
  • Numeric separators like 1_000_000

คำถามที่พบบ่อย

ต้องมีบัญชีไหม?

ไม่ต้อง ใครก็เล่นได้ เข้าสู่ระบบเพื่อเก็บ XP, streak, เหรียญตรา และประวัติ

ทำซ้ำได้ไหม?

ได้ ระบบเก็บคะแนนที่ดีที่สุดไว้ และสลับคำถามกับตัวเลือกใหม่ทุกครั้ง