Object Methods

const spices = [
	{name: "Emma", nickname: "Baby"},
	{name: "Geri", nickname: "Ginger"},
	{name: "Mel B", nickname: "Scary"},
	{name: "Mel C", nickname: "Sporty"}
]

const spiceGirls = {
	albums: ["Spice", "Spiceworld", "Forever"],
	motto: "Girl Power",
	Members: spices
}

Built-in Objects

The console object has built in methods like log(), warn(), error(), and clear() which can output different types of messages to the browser console.

How JavaScript handles primitive strings when using methods like .toUpperCase() is that it wraps primitive strings in wrapper object behind the scenes, allowing method calls while keeping the original string immutable.

Math provides method and constants like Math.pi and Math.random() which generates a pseudo-random number between 0 and 1.

In JavaScript, any value that is not primitive value is considered an object, which includes arrays, functions, and built-in types.

Still on Objects & Arrays

Property names can be unquoted single words or quoted strings, even with spaces or special characters. Quoted property names can be access using bracket notation.

The special characteristics Arrays have in relation to objects are arrays are a kind of object with special properties (indices properties)