mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 14:01:44 -04:00
fix(curriculum): correct object property syntax in working with objects lesson (#62000)
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user