JavaScript Associate — Easy
Key points
- push() method adds elements to the end of an array.
- unshift() adds elements to the beginning.
- concat() creates a new array by combining existing arrays.
- splice() is used for adding or removing elements at any position in an array.
Ready to go further?
Related questions
