Friday, July 31, 2020

Javascript Object

on Leave a Comment
An object is a data type that is used to represent the state and behaviour of the entity. The state of the object is the properties of entity and behaviour is the action of the entity. we can understand it by an example. a person has body-colour, height, etc are the state and eating, walking, running is the behaviour. An object is the base of javascript because in javascript many things are the object or the sub-type of object example arrays and function, a function is the sub-type of an object. so without wasting time lets start now......

What is Object?

An object is the collection of properties. each property has a name and value pair. a property name is the key of object and value is associated with the key. Let's understand objects and properties with a real-life example...

0 comments:

Post a Comment