Objects are the backbone of the javascript eco-system. Understanding it like a understanding language DNA's. Here are the deep dive into how they works and why they are the MVP or your codebase.
Content List
What objects are and why they are needed
Creating objects
Accessing properties
Updating object properties
Adding and deleting properties
Looping through object keys
What objects are and why they are needed
In programming we ofter need to represent complex entitis. A simple variables like string or number can only hold one piece of data, however real world item have a multiple characterstics.
A objects are a collection or properties & methods, they store values in key-values pairs.
You might thinking is really we need object there is why:
without object keeping track of related data is messy, imagin you have to store a user profile data, keeping each data in single variable like username , userEmail , and userAge . If there are 100 user then you have to manage 300 disconnected variable.…