Basic JavaScript Question:
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 = {};
Previous Question | Next Question |
What does JavaScript null mean? | How do you assign object properties? |