Object Values:

  • Finding Object values:

  • Let's create a new Object that we shall call country:

    1. Call Object:
    2. Open console!


    3. Call function():
    4. Open console!


    5. Call this.key:
    6. Open console!


    7. Call Object.key:
    8. 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:

    1. Original value and result:


    2. Updated Object values:
    3. Click the button to see the new value and result:


    4. Delete Object values:
    5. Click the button to see the new value and result: