Question: Which is the BEST syntax for storing an object in a variable? Which is the BEST syntax for storing an object in a variable? director

Which is the BEST syntax for storing an object in a variable?
Which is the BEST syntax for storing an object in a variable?
director ={
firstName: "David",
lastName: "Lynch"
};
const director ={
firstName: "David",
lastName: "Lynch"
};
director ={
firstName = "David",
lastName ="Lynch"
};
const director ={
firstName("David"),
lastName("Lynch")
};

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets analyze each option to determine which is the best syntax for storing an object in a variable O... View full answer

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!