September 2024
Intermediate to advanced
743 pages
27h 48m
English
In addition to the primitive data types, JavaScript also provides objects and arrays. You can use objects to group together related functionality in a meaningful way. Arrays work like a kind of list, so they can contain multiple values.
You can create objects in several ways in JavaScript. At this point, I would like to introduce the simplest variant: the literal notation (or object-literal notation). In this approach, you define an object using curly brackets. Inside the curly brackets, you can then define the object’s properties and define its methods, which are virtually functions that can be called on the object.
You can access individual properties and methods using dot notation: Simply use ...
Read now
Unlock full access