Array Methods You Must Know
Array methods help us perform operations on arrays and modify or process their data more easily.
push()
Adds an element at the end of the array.
const arr = [1, 2];
arr.push(3);
console.log(arr);
tech-log.hashnode.dev3 min read