google script define array

JavaScript
var myArray = new Array(arrayLength);
Source

Also in JavaScript: