Master array methods (map, filter, reduce), string operations, and common algorithms like searching and sorting. Arrays are O(1) access, O(n) insertion/deletion.
const arr = [1, 2, 3, 4, 5];
const doubled = arr.map(x => x * 2);
console.log(doubled);
const evens = arr.filter(x => x % 2 === 0);
console.log(evens);
// ...Master array methods (map, filter, reduce), string operations, and common algorithms like searching and sorting. Arrays are O(1) access, O(n) insertion/deletion.
const arr = [1, 2, 3, 4, 5];
const doubled = arr.map(x => x * 2);
console.log(doubled);
const evens = arr.filter(x => x % 2 === 0);
console.log(evens);
// ...