Object Literals

WHAT IS AN OBJECT?

Objects group together a set of variables and functions to create a model of a something you would recognize from the real world. In an object, variables and functions take on new names.

  • IN AN OBJECT: VARIABLES BECOME KNOWN AS PROPERTIES
  • IN AN OBJECT: FUNCTIONS BECOME KNOWN AS METHODS

    Creating an object: Literal notation

    objects

    Accessing an object and DOT NATATION.

    You access the properties or methods of an object using dot notation.

    call an object