Loading lesson path
Concept visual
Start at both ends
A
Object type.
Object data type can hold many different object types.
// Object const person = {firstName:"John", lastName:"Doe"};
// Array Object const cars = ["Saab", "Volvo", "BMW"];
// Date Object const date = new Date("2022-03-25");JavaScript Objects represent complex data structures and functionalities beyond the primitive data types (string, number, boolean, null, undefined, symbol, bigint).
{ }.JavaScript objects contains a collection of different properties. Object properties are written as name:value pairs, separated by commas.
Create a person object with 4 properties: firstName, lastName, age and eyeColor:
const person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};User defined object.
Formula
Built - in JavavaScript object types can be:Array of values accessed by a numerical index
Formula
Array of key - value pairs where the keys can be of any data typeArray of values where each value can only appear once
A type of Map with weak references to the stored objects.
A type of Set with weak references to the stored objects.
An object that provides math constants and functions like PI and random()