DEV Community

Discussion on: Six Ways to Create Objects in JavaScript

Collapse
 
ahamedsajeeth profile image
Ahamed Sajeeth

it is useful thanks. which method is used mostly and usually

Collapse
 
alexdevero profile image
Alex Devero

Thank you Ahmed. For basic objects? The object literal is the most used choice. For something more complicated? I think it is either constructor or class.

Collapse
 
ahamedsajeeth profile image
Ahamed Sajeeth • Edited

thank you @alexdevero

Thread Thread
 
alexdevero profile image
Alex Devero

You are welcome Ahamed.