JavaScript Objects
JavaScript Object Study Path
Learn Objects in the Right Order:
- First the idea
- Then how to make them
- Then how to use them
- Properties, Methods, this
Basic Learning
Quick Start
Step 1
JavaScript Objects
Objects are variables that can store both values and functions.
Objects are one of the most important concepts in JavaScript.
If you understand objects, you understand JavaScript.
Step 2
Object Properties
JavaScript objects are collections of properties.
Properties can be changed, added and deleted.
Step 3
Object Methods
Methods are actions that can be performed on objects.
Method are functions stored as a property values.
Step 5
Object Display
Displaying properties by name
Displaying properties in a loop
Using Object.values()
Using JSON.stringify()
Step 6
Object Constructors
Sometimes we need to create many objects of the same type.
To create an object type we use an object constructor function.
Advanced Learning
Step 1
Object Definitions
Using an Object Literal
Using the new Keyword
Using an Object Constructor
Using Object.assign()
Using Object.create()
Using Object.fromEntries()
Step 2
Object Iterations
Object.entries(object)
Object.keys(object)
Object.values(object)
Object.groupBy(object, callback)
Step 4
Getters and Setters
Getters and setters allow you to define Object Accessors (Computed Properties).
Step 5
Object Destructuring
The destructuring assignment syntax unpack object properties into variables.
Step 6
Object Protection
Prevents changes to an object
Prevents adding properties
Prevents deleting properties
Next Chapter
Continue with the next chapter to learn more about objects: