OOP – Classes & Objects
Declares a blueprint for creating objects with shared properties and methods.
Understanding OOP – Classes & Objects in JavaScript
What it does: class is exactly the keyword used to define this blueprint. new is the keyword that builds a new object from a class. class defines the shape and behavior that objects will share. JavaScript is case-sensitive, so 'class' must be lowercase. Parentheses are needed to actually call the class constructor. Each call to new creates its own independent object. new builds an actual object based on the Dog blueprint. Declares a blueprint for creating objects with shared properties and methods.
Common mistakes: 'class' must be lowercase - a capital C causes an error. This line is missing a semicolon, but that's not required in JS.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 41–52) and word search (Modules 21–52).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
classFill in the Blanks
Spot the Error
Student with a class code? Join your class →