in JavaScript by
Q:
How can you create an Object in JavaScript?

▼ Show 1 Answer

0 votes
by
JavaScript supports Object concept very well. You can create an object using the object literal as follows −

var emp = {

   name: "Zara",

   age: 10

};
JavaScript
Learn More with Madanswer
...