Expert JavaScript Developer Question:
Download Job Interview Questions and Answers PDF
How to create a new object in JavaScript?
Answer:
Create a new object in JavaScript
var obj = new Object();
//or
var obj = {};
var obj = new Object();
//or
var obj = {};
Download Expert JavaScript Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
How to assign object properties? | Where are the best JavaScript resources on the Web? |