per valore NUMERICO forse intendi la lunghezza...
codice:var _string = "ciccio bello è stato rubato"; alert( "La stringa è lunga " + _string.length + " caratteri." );
oppure il valore ASCII di un carattere, per esempio il PRIMO...?
codice:var _string = "ciccio bello è stato rubato"; alert( "Il primo carattere è " + _string.charCodeAt( 0 ) );



Rispondi quotando