Skip to main content

Arrays and Array Methods

Learn Arrays and Array Methods (JavaScript Fundamentals, JavaScript) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Common Array Methods • push() / pop() - add/remove from the end. • unshift() / shift() - add/remove from the start. • splice(start, deleteCount, ...items) - remove/insert anywhere, mutates the array. • slice(start, end) - returns a shallow copy of a portion, does NOT mutate.

More lessons in JavaScript Fundamentals