just let string in array javascript code example Example: create array text javascript var cars = ["Saab", "Volvo", "BMW"];