r/javascript • • Sep 30 '19

Removed: /r/LearnJavascript Three Different Ways to Create Objects in JavaScript

https://medium.com/better-programming/three-different-ways-to-create-objects-in-javascript-d3595d693296
9 Upvotes

6 comments sorted by

View all comments

8

u/[deleted] Sep 30 '19

What about Object.create?

0

u/noharashutosh Sep 30 '19

Yeah, that completely correct and there other ways of creating objects too but I have just discussed three of them...

0

u/[deleted] Sep 30 '19

[deleted]

1

u/papkn Sep 30 '19

Which is 1.5 - 2x faster than object literal :)