the-modern-javascript-bootcamp/notes/chapter5_javascript-objects.md

577 B

Chapter 5: JavaScript Objects

Object Basics

Create objects:

let object_name = {
    property_1_name: property1_value,
    property_2_name: property2_value,
}

To access a single property, using . (dot) operator

Check code in object-101.js

Using Objects with Functions

Parse objects into function just like normal number, it allow us to parse multiple values into function as a single value. Or get multiple values as single value from a function

Exmple check object-function.js