array javascript push element code example Example: js push let arr = [9, 4, 3, 18] arr.push(30) console.log(arr) // [9, 4, 3, 18, 30]