How do you create a new object in JavaScript?

How do you create a new object in JavaScript?

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

By:Rajesh Kumar
Date:2026-03-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Javascript SUB Links

Javascript SUB interview questions and answers for experienced and fresher