Categories

Oct 19, 2019 in JavaScript

Q: How can you create an Object in JavaScript?

1 Answer

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

};
Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

Madanswer
Aug 17 in JavaScript
Feb 6 in JavaScript
Feb 6 in JavaScript
...