How do you create a new object in JavaScript?

Answer Posted / nidz

var myObject={} this also creates a new object

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is enum data type?

498


What is the difference between textContent and innerText?

511


What is s+ in regex?

527


What is Number object in JavaScript?

565


How do I turn off javascript in chrome?

468






What are global variables in javascript?

531


Explain promise in javascript?

440


How to setting a cookie with the contents of a textbox?

527


what are the differences between as2 and as3?

2925


java pgme for class members hours:minutes:seconds then the constructor expects milliseconds as assignment and initialize data members the members function print hh:mm:ss 90,000 milliseconds passed in constructor then the output is 00:01:30

1523


What is the difference between attributes and property?

489


How do I find javascript?

495


How do you declare javascript?

534


Is javascript enabled on chrome?

470


What is callback?

592