Oct 19, 2019 in JavaScript
Q: How can you create an Object in JavaScript?

1 Answer

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

var emp = {

   name: "Zara",

   age: 10

};

Related questions

0 votes
Mar 20 in JavaScript
+1 vote
Aug 17, 2020 in JavaScript
...