Here is an example:
In the example above, we have an object called
person with three properties:
occupation. We can access these properties using dot notation by appending the property name to the object name.
Print the value of the property
name from the
person object using dot notation.
Sign up to start coding
Already have an account?