I am looking for a quick way of defining several variables at once in GEE. My code currently is written like this:
var a = 0;
var b = 0;
var c = 0;
var d = 0;
which takes up space uselessly and is quite repetitive. I found that in javascript it is possible to write it as:
var [a,b,c,d] = [0,1,2,3]
but trying that in GEE only produces an error:
(SyntaxError: Unexpected token (1:5)).