Answers

Question and Answer:

  Home  JQuery Programmer

⟩ How can you create an Object in JavaScript?

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

var emp = {

name: "Jhon",

age: 10

};

 172 views

More Questions for you: