- User-defined objects
- Built-in objects (for example:
In the code above, the constructor is a function that specifies the type of the object.
function is an example of a constructor, because all functions are actually objects. Next, arguments is a list of values. These are the values that the constructor will be called with.