var lunghezza = arr.length;

Che e' questo: Browser.msgBox(lunghezza);