Concept: Class vs Instance
Concept Check Medium
Question
What is the relationship between a class and an instance?
Hint
Think of a class as a blueprint.
Explanation
A class is a blueprint or template that defines attributes and methods. An instance is a specific object created from that class. You can create many instances from one class, each with its own attribute values. Like a Cookie cutter (class) and the cookies it produces (instances).
Related Resources
Related Lessons
- Classes and Objects
Classes and instances.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.