If single digit number
if ( len == 1 ) { word += single_digits [ num [ 0 ] . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ] ; return word ; } let i = 0 , ctr = 0 ; let s = " " ; while ( i < len ) { if ( len >= 3 ) { if ( num [ i ] != ' ' ) { word += single_digits_temp [ num [ i ] . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ] + " " ;