Basic JavaScript Question:

How do you create a new object in JavaScript?

Tweet Share WhatsApp

Answer:

Create a new object in JavaScript

var obj = new Object();
//or
var obj = {};

Download JavaScript PDF Read All 114 JavaScript Questions
Previous QuestionNext Question
What does JavaScript null mean? How do you assign object properties?