new Array google script code example Example: google script define array var myArray = new Array(arrayLength);