create array text javascript

JavaScript
var cars = ["Saab", "Volvo", "BMW"];
Source

Also in JavaScript: