Classes provide syntactic sugar over prototypes, supporting constructors, private `#fields`, and inheritance with `extends` and `super`.
js
class Wallet {
#key;
constructor(address) { this.address = address; }
}100 XP to Apprentice
Constructors, fields, and extends.
AI translates the explanation and quiz text while preserving code and answer scoring.
Classes provide syntactic sugar over prototypes, supporting constructors, private `#fields`, and inheritance with `extends` and `super`.
js
class Wallet {
#key;
constructor(address) { this.address = address; }
}1. Where do class methods live in memory?
2. What enforces true private class fields?
3. What must a derived constructor call before this?