Creating an object in JavaScript may be achieved by different means, this example allows us to create the object and establish its properties: Object with literal syntax: This is the simpliest way to create an object, the downside is that you´ll need to set the properties for each of the objects you want to create manually. The example is as follows: Object with new keyword There are different ways to create objects in javascript using the keyword. The built in Object constructor To create an object with the built in constructor use the following sintax: Ok, we created an empty object, now let´s give it some properties: Now, if we check the obj, we see the properties we just added User defined constructor function Using a user defined constructor function we take care of a problem that happens when using the and is that, the later, is longer to code and not quite dynamic as the one we´ll discuss now. Every time we´ll execute the function, we´ll pass the value of the properties and the function will create for us the object with the given properties (remember to send the correct type of values the object receives to prevent errors). Object.create() Object.create() receives an obj as prototype (or blueplrint) and creates a new object from it Syntax: Parameters: : the object used as prototype (optional): If specified and not undefined, the properties you want to add to the new object An example will be most welcome to make all that more understandable, here it is: First we create our prototype obj (parent object, or anyway you feel more comfortable to name it). We use the method, and as first argument we pass the object, then we follow the syntax: A full example would look like this: Now that we have our prototype object, we can use it with like this: Now, let´s see the properties we just added Object.assign() If we want to create an object that needs other object properties as its own, then we use the Object.assign() method. This method copies all enumerable own properties from one or more source objects to a target object. It returns the modified target object. Let´s see an example, given two objects: Now, we want to create a new object that cointains both of them. We explored different ways on how to create objects in javascript, from the most straightforward one to a dynamic way, and using other object as a prototype creating an object from other objects. Hope you enjoyed the reading and keep on the geek side.