Sending a Geogebra List or Array to JavaScript

ggbApplet.evalCommand("list=Sequence(RandomBetween(-10, 10),i,1,RandomBetween(2,10))");[br]ggbApplet.evalCommand("n=Length[list]");[br]var n= ggbApplet.getValue("n");[br]var aA= new Array();[br]for (var i = 1; i <=n; i++ ){[br]ggbApplet.evalCommand("a=Element[list,"+ i+"]");[br]a = ggbApplet.getValue("a");[br]aA.push(a);[br]}[br]alert(aA.join());

Information: Sending a Geogebra List or Array to JavaScript