DEVFYI - Developer Resource - FYI

How do you create a new object in JavaScript?

JavaScript Interview Questions and Answers


(Continued from previous question...)

59. How do you create a new object in JavaScript?

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

(Continued on next question...)

Other Interview Questions