Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: How do you create a new object in JavaScript?
Answer:
Ways to create a new object in javascript:
  • var obj = new Object(); 
  • var obj = {};
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook