taking a spliced item and pushing to new array javascript code example Example: pushing element in array in javascript array = ["hello"] array.push("world");