how to take data from html and add to an array in js code example Example: add value to array javascript var fruits = ["222", "vvvv", "eee", "eeee"]; fruits.push("Kiwi");