Basic JavaScript Question:
Download Job Interview Questions and Answers PDF
How do you 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 JavaScript Interview Questions And Answers
PDF
Previous Question | Next Question |
What does JavaScript null mean? | How do you assign object properties? |