Object Values:
Finding
Objectvalues:
Let's create a new Object that we shall call country:
- Call
Object: - Call
function(): - Call
this.key: - Call
Object.key:
Open console!
Open console!
Open console!
Open console!
So, for us to get the values, we call simply the name of the Object and its keys using dot notation.
If we have multi-level Objects, we use dot notation twice:
In other words, to access the values of the key "rulers", we call:
Open console!
Updating Object values:
Original value and result:
- Updated
Objectvalues: - Delete
Objectvalues:
Click the button to see the new value and result:
Click the button to see the new value and result: