DEV Community

loading...

Discussion on: Six Ways to Create Objects in JavaScript

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
Ahamed Sajeeth • Edited

thank you @alexdevero

Thread Thread
alexdevero profile image
Alex Devero Author

You are welcome Ahamed.