In JavaScript, an Array is an ordered list of values. You write one with square brackets: ["red", "green", "blue"]. Each value is an element. The first element is at index 0.
length is a property, so you read it without parentheses: colors.length. Methods do the work of changing or copying the list. push() adds to the same array. map() and filter() return a new array and leave the original alone. Array.isArray(value) is the check for “is this a list?”, because typeof [] is "object".
An Array is an ordered list of values. You write it with square brackets: ["red", "green", "blue"]. The first item is at index 0. length tells you how many items are in the list.
Yes. colors[0] is the first item and colors[colors.length - 1] is the last. colors.at(-1) also reads the last item. There is no item at colors[colors.length].
Some do. push(), pop(), splice(), and sort() change the same array. map(), filter(), slice(), and concat() return a new array and leave the original in place.
Use Array.isArray(value). typeof [] is "object", so typeof cannot tell an array from a plain object.
Practice the examples here, then open the Array Methods index for push(), map(), filter(), and find(). The Array Properties index explains length, constructor, and Array.prototype.