What is an object in JavaScript, give an example?
An object is just a container for a collection of named values:
var man = new Object();
man.name = 'Vikas Ahlawat';
man.living = true;
man.age = 27;
you can suggest other answer in comment box var man = new Object();
man.name = 'Vikas Ahlawat';
man.living = true;
man.age = 27;
Exam: Java Script Interview QUESTIONS
Login to DiscussLogin
Recommended Learning for you
Close(X)
Subscribe here for free mock test on IAS PCS SSC and other competitive exam. Signup here to get SSC CGL Solution and main exam study material