Too Long; Didn't Read
JavaScript is an object, whether it’s an array or a function. In this post, we’ll learn three different ways to create objects in JavaScript. Object literals encapsulate data, enclosing it in a tidy package. With the built-in Object Constructor in Javascript,creates an empty object; or, this keyword can be used with a user-defined constructor function. The next step is to add properties and methods to this empty object. If you use the same name for two properties, the second property will overwrite the first.