What is an object in javascript, give an example?



What is an object in javascript, give an example?..

Answer / Abhinav Asgola

An object in JavaScript is a collection of properties (key-value pairs) and methods. It provides a means to store data and associated functions for manipulating that data. An example of an object is: var person = { name: 'John', age: 30 };

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are the Non-primitive data types in JavaScript?

1 Answers  


How to display Alert in JavaScript

1 Answers   HCL,


Give an example of closure?

1 Answers  


What is new keyword in javascript?

1 Answers  


Define escape() function?

0 Answers  


Why javascript is dangerous?

1 Answers  


Methods get and post in html forms - what's the difference?

1 Answers  


What is the difference between .call() and .apply()?

1 Answers  


where we use javascript and for which purpose we use javascript how?

13 Answers   Bugatti, IBM, Infosys, TCS,


What is called variable typing in javascript?

1 Answers  


What causes memory leaks?

1 Answers  


In javascript chained select menus are available.first select menu is worked and others are disabled.when we select any one option then the next select menu will worked having option releated to selcted in first select menu.How it possible? what is the coading of this programme?

1 Answers  


Categories