0 votes
in JavaScript by
How can you create an Object in JavaScript?

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

};

Related questions

0 votes
asked Mar 20, 2021 in JavaScript by sharadyadav1986
0 votes
asked Oct 13, 2023 in JavaScript by GeorgeBell
...