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 ??.

Mittel 10 Fragen ~6 Minuten Bestanden ab 80% Node.js 22

Modus wählen

Du spielst als Gast: Melde dich an, damit XP und Serie gespeichert werden.

Beispielfrage

Frage 1 von 10

What does this print?

console.log([10, 20, 30].at(-1), "hello".at(0));
Lösung zeigen

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.

Darum geht es in diesem Quiz

  • 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

Häufige Fragen

Brauche ich ein Konto?

Nein. Jeder kann spielen. Mit Anmeldung werden XP, Serie, Abzeichen und Verlauf gespeichert.

Kann ich es wiederholen?

Ja. Dein Bestwert bleibt erhalten, und Fragen und Antworten werden jedes Mal neu gemischt.