Guided Notes
Arrays & Objects
Arrays and their methods (map, filter, reduce, find, sort), objects, properties, methods, this, and constructors.
Arrays
Slide 1 / 5An array is an ordered list:
const fruits = ['apple', 'banana', 'cherry']; fruits[0] β 'apple' (indexes start at 0) fruits.length β 3 fruits.at(-1) β 'cherry'
Change arrays with methods: push('kiwi') adds to the end, pop() removes from the end, unshift / shift do the same at the start, splice(1, 1) removes items from the middle.
const stops reassignment, not changes: a const array can still be pushed to.
