DEV Community

loading...

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 Author

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
Thread Thread
alexdevero profile image
Alex Devero Author

You are welcome Ahamed.