how to create a list in javascript

JavaScript
var cars = ["Saab", "Volvo", "BMW"];
 var list = [1 ,2 ,"apple",true];
Source

Also in JavaScript: