fix(curriculum): correct object property syntax in working with objects lesson (#62000)

This commit is contained in:
Kashaf Ahmed
2025-09-01 09:54:26 +05:30
committed by GitHub
parent 92015b62c3
commit 8ee9ea33ef

View File

@@ -19,7 +19,7 @@ console.log(person.name); // "Alice"
console.log(person.job); // undefined
```
In this example, `person.name exists`, so it logs `Alice`. But `person.job` doesn't exist, so it gives us `undefined`.
In this example, `person.name` exists, so it logs `Alice`. But `person.job` doesn't exist, so it gives us `undefined`.
Now, let's say we want to access a property of an object that might not exist: