var n=new Array(3); n[0]=255; n[1]=4096; n[2]=65535; var i=0; while(i<n.length){ var d=n[i] >> 8; log(n[i]," : ",d,"\n"); i=i+1; }