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 the purpose of using javascript?

504


What is callback in javascript?

496


What is createtextnode?

480


Is there automatic type conversion in JavaScript?

541


Is JavaScript case sensitive? Give an example?

558






How are event handlers utilized in javascript?

638


How to convert numbers to strings using javascript?

495


What is spread operator react?

468


What is Number object in JavaScript?

565


What is s+ in regex?

527


Explain “use strict” ?

520


How to access an external javascript file that is stored externally and not embedded?

602


What is js injection?

489


How do you define a class and its constructor?

565


What is escape() function?

528