let letters = ['a', 'b', 'c'];
letters[0]; // Access first item
letters[0]; // Access first item
letters[1]; // Access second item
letters.length;
// Output: 3
letters.push('d');
// Output: ['a', 'b', 'c', 'd']
letters.pop();
// Output: ['a', 'b']
letters.unshift('d');
// Output: ['d', 'a', 'b', 'c']
letters.shift();
// Output: ['b', 'c']
letters.indexOf('a');
// Output: 0
letters.splice(1, 1); // splice(index, number of items)
// Output: ['a', 'c']
letters.splice(1, 1, 'x', 'y', 'z'); // splice(index, number of items)
// Output: ['a', 'x', 'y', 'z', 'c']
letters.reverse();
// Output: ['c', 'b', 'a']
let letters = ['a', 'b', 'c'];
let end = ['x', 'y', 'z'];
let newArray = letters.concat(end);
// Output: ['a', 'b', 'c', 'x', 'y', 'z']
let a, b;
[a, b] = [1, 2];
let letters = [['a', 'b'], ['c', 'd']];
letters[0][0]; // Access first item of first array
letters[0][1]; // Access second item of first array
letters[1][0]; // Access first item of second array
letters[1][1]; // Access second item of second array