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