ES6 introduced a whole host of new features into JavaScript. One of these was the class syntax. It gives us a way of defining ‘classes’ in JavaScript which is similar to more traditional Object Orientated languages such as Java. The reason I put ‘classes’ in inverted commas is because despite
Category: OOP
Object Oriented Programming In JavaScript – Part 2: Inheritance
Inheritance is a major feature of Object Oriented Programming (OOP). It is useful because it allows for code reuse and is also a way of enabling polymorphism. Polymorphism is a bit beyond the scope of this post, but you can read various descriptions about it on the Stack Overflow thread:
Object Oriented Programming In JavaScript – Part 1: The Basics
The Basics of Objects In programming, objects are units of code which contain both data and functions which act on that data, all related to a specific entity within the system. They are used to model the semantics of the system. For example a customer relationship manager tool may contain