βοΈ What are Objects?
- Objects are collection of property and property values
- Every object has state and behavior
- A real time object is mimicked in the programming world
- A object can contain below things in it.
a. variable(integer, decimal, Boolean, character, string)
b. array
c. function
d. another object
βοΈ How to create objects in JavaScript?
Output:
βοΈ How to make an object read only?
Output:
βοΈ How to make an object extensible(un expandable) but modifiable
Output:
βοΈ How to expand an object property ?
Output:
βοΈ How to add an Boolean object property to an Object?
Output:
βοΈ Object DE structuring
Output:
Top comments (0)