Article

Three ways to create a JavaScript object

There are three ways to create a new object in JS

var obj = {};

var objFoo = Object.create(Object.prototype);

var lastObj = new Obj();

Which one do you use?

Article Stats

Real-time insights

1
min read
25
words
Nov 20, 2016
post

Share Article

Spread the knowledge

Quick Actions

Enjoying this?

Get more insights delivered to your inbox