Skip to content
JavaScript·Intermediate·Conceptual·1 min read

What does the class syntax change?

Short interview answer

Classes provide clearer syntax and semantics over prototype-based behavior: methods live on the prototype, constructors initialize instances, and extends links both constructor and prototype chains. Classes are strict, cannot be called without new, and support private fields.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Prototype chain

Related questions