-1

In Google Apps Script what is the difference between declaring an array using "[]"or"{}"? For example:

function myFunction(){
var colors = []
var colors2={}
}

Thanks for any help

  • 1
    Does this answer your question? [What’s the difference between “{}” and “\[\]” while declaring a JavaScript array?](https://stackoverflow.com/questions/33514915/what-s-the-difference-between-and-while-declaring-a-javascript-array) – GSerg May 07 '22 at 17:05
  • Yes! Thank you very much! Now I understand it! :) – user17795768 May 22 '22 at 15:04

0 Answers0