Object oriented programming and classes in JavaScript

OOP is a way of structuring code around objects that: * represent things (users, cars, games, etc.) * bundle data (properties) and behavior (methods) together In JavaScript, since ECMAScript 2015 (ES6), this is may be done with classes.