DEV Community

Cover image for 🔥 JavaScript Objects
Tejkumar Kempaiah
Tejkumar Kempaiah

Posted on • Updated on

🔥 JavaScript Objects

Objects are blueprint of class.
And object has states & behavior associated to it.

Object properties are declared in the form of key-value pairs, Where keys are always 'String' in nature and value can be of any supported datatype from JS(ES5, ES6).

Ex:

image

How to create empty object ?

Ex: {}

How to create an non-empty object ?

image

How make an object Immutable?

image

Top comments (0)