Basic Array Operations (Methods)
const friends = ['Michael', 'Steven', 'Peter']; friends.push('Jay'); console.log(friends); // prints ['Michael', 'Steven', 'Peter', 'Jay'] Add elements const friends = ['Michael', 'Steven', 'Peter']; const newLength = friends.push('Jay'); console.log(newLength); // prints 4 friends.unshift('John'); console.log(friends); // prints ['John', 'Michael', 'Steven', 'Peter', 'Jay'] unshift() method is ..