add variable to array in javascript code example Example: add value to array javascript var fruits = ["222", "vvvv", "eee", "eeee"]; fruits.push("Kiwi");