Question: 21. Defining a variable as an Object Literal (Eg: var p-accomplishes pretty much the same thing as defining a variable equal to'new Object. Is it

 21. Defining a variable as an Object Literal (Eg: var p-accomplishespretty much the same thing as defining a variable equal to'new Object.Is it faster and easier to type up an object literal? Whichone should we use and why? Explain. 4 Marksimage text in transcribed

21. Defining a variable as an Object Literal (Eg: var p-accomplishes pretty much the same thing as defining a variable equal to'new Object. Is it faster and easier to type up an object literal? Which one should we use and why? Explain. 4 Marks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!