What is object in j…
 
Notifications
Clear all

What is object in javascript?

2 Posts
3 Users
0 Likes
231 Views
0
Topic starter

What is object in javascript?

2 Answers
0

In JavaScript, an object is a data structure that stores key-value pairs, allowing you to group related data and functions together. It is a fundamental data type used for structuring and organizing information in JavaScript programs.

0

In JavaScript, an object is a standalone entity, with properties and type. Compare it with a cup, for example. A cup is an object, with properties. A cup has a color, a design, weight, a material it is made of, etc. The same way, JavaScript objects can have properties, which define their characteristics.

Share: