Reading and changing an object's properties
Reads a property of an object, like rex.age. To change it, assign a new value: rex.age = 4. Each object keeps its own values.
Understanding Reading and changing an object's properties in ACARA Digital Technologies Years 9–10
What it does: Using object.property inside console.log reads the property and shows its value. Each object keeps its own values, so milo.age stays the same when rex.age is changed. A single = assigns a new value. == only compares two values and changes nothing. Assigning to a property replaces the old value, so rex.age is now 4. Properties are read with dot notation: object.property. Round brackets are for calling functions. const stops rex from being reassigned to a different object, but the properties inside the object can still be changed. The object name comes first, then a dot, then the property: rex.name. You must assign to rex.age. Writing just age creates or changes a separate variable, not the property of rex.
Common mistakes: Property names are case-sensitive. rex.Age does not exist, so it prints undefined. It should be rex.age. == compares two values and does not change anything. To change the property, use the assignment operator: rex.age = 4;.
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 728–742) and word search (Modules 710–742).
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
object.propertyFill in the Blanks
Spot the Error
Student with a class code? Join your class →