Archive for September 24, 2007

JavaScript is an Object-Oriented Language

Posted in JavaScript, Software, Technology, programming on September 24, 2007 by Joey

JavaScript is often considered to not be an object-oriented language. This stems from it not supporting inheritance through classes. JavaScript does use prototype-based inheritance, however. Prototypes make properties and methods of a constructor available to all instantiations of the constructor. These aren’t classes, in the strict sense of the word, but JavaScript is able to simulate classes effectively.

Related articles:
Object-Oriented JavaScript