Push: adding item in the end. To add item to the end of an existing array we use the push method.

PHOTO EMBED

Fri Sep 16 2022 13:12:25 GMT+0000 (Coordinated Universal Time)

Saved by @sreejithbs

// syntax
const arr  = ['item1', 'item2','item3']
arr.push('new item')
console.log(arr)
// ['item1', 'item2','item3','new item']
content_copyCOPY

https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/05_Day_Arrays/05_day_arrays.md