Language - Object


Objects are values that hold other values at specific named locations called properties (Property in this context may be a method or a variable)

An object can be seen as a single data structure that contains:

  • data
  • as well as functions; functions of objects are called methods.

Object property access: obj.a means an object value called obj with a property of the name a.

An object is a runtime instance of a blueprint (generally a class but it can be also a prototype as in Javascript)

They are generally used to represent an entity.

Task Runner