
Even More JavaScript Features You Should Avoid - JSJ 547
JavaScript Jabber
00:00
Object Dot Create for Jaboscript Code
Object dot create is yet another way for jaboscript code to create an object instance. It was originally proposed by a crockford, a douglas crockford. But it turned out to be an, actually not such a great idea. You want to declaratively construct objects. And especially in a language that has such great support for object literals. The other way when you can use object thot create and hand over a reference to another object, which would be used as a prototype,. That's kind of useful back in the day when you were using lat say, object as dictionaries. So here you see all these things that i recommended not using all together.
Transcript
Play full episode