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, badge और हिस्ट्री सेव रखने के लिए साइन इन करें।

क्या मैं इसे दोबारा दे सकता हूं?

हां। आपका बेस्ट स्कोर सेव रहता है, और हर बार सवाल और जवाब शफ़ल होते हैं।