What is an object in JavaScript, give an example?

  • : 338
  • : 5
    Previous Next

    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

  • Exam: Java Script Interview QUESTIONS

    Recommended Learning for you

    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