How do you create a new object in JavaScript?
A. var obj = {};
B. var obj=new {};
C. var obj = Object();
D. None of the above.
Answer:A
How do you create a new object in JavaScript?
A. var obj = {}; B. var obj=new {}; C. var obj = Object(); D. None of the above.