mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): correct object property syntax in working with objects lesson (#62000)
This commit is contained in:
parent
92015b62c3
commit
8ee9ea33ef
@ -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:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user