Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 13

Classes

What class adds over constructor functions: fields, private names, static blocks, super, and subclassing built-ins.
7 questions
  1. 010Are classes just syntactic sugar over prototypes?Coming soonCoremedium
  2. 020How do private fields (#x) work?Coming soonmedium
  3. 030Class fields vs methods — where does each live?Coming soonmedium
  4. 040What are static members and static initialization blocks?Coming sooneasy
  5. 050How does super work?Coming soonhard
  6. 060How do you extend built-ins like Array and Error?Coming soonhard
  7. 070Composition vs inheritance — when do mixins make sense?Coming soonmedium