var aArray = new Array(); var iYourNumber = 123; var sStringValue = iYourNumber.toString(); for(i=0; i<sStringValue.length; i++){ aArray[i] = sStringValue[i]; alert(aArray[i]); };
var aArray, iYourNumber = 123; aArray = (''+iYourNumber).split('') alert(aArray)
alert( 421..toString()[0] )