So now we have five methods to create objects in JavaScript. But which one would you recommend? Well, the answer is so simple. Each one of these methods has broad and cons. However, in general, I would recommend using the simple way of creating objects by creating a variable. And then using the curly braces notation, and list all your properties for that object.
And whenever you want to add more properties, feel free to do so you can do so because it's so simple in JavaScript. But if you are going to create complicated applications, you will be forced to use either the constructor function or the factory function, because in that case, you will need to create many objects of the same function. So it's important to know this concept that in complicated applications, you will you are going to create many Many objects have the same function you so you just create one function. And then whenever you want to create objects, you will be able to do so. But if you are using simple applications, you only need to create one object and you are not going to create many objects. And I want I also want to warn you that always, always stick with one method, and don't just overwhelm yourself with many methods because you will get confused just use one method and always always use it because if you use many, many methods, you will get confused and you will not master all of them you you need just to pick one of these methods.
Pick one for the for simple applications and wonderful for complicated applications. And just use them over and over again. And with time, as time goes by, you will be able to master these methods