ES6 and JavaScript: Constructors

JavaScript is not an object oriented language (OOP), but an object-based language. That is to say, everything which exists in JS is an object: classes, numbers, functions…are all {}.

By comparison, C++ an OOP language, to create an object, one must first instantiate a class and then implement a constructor which then creates an object.