28/09/2003, 16:07
|
| | | Fecha de Ingreso: junio-2003 Ubicación: Barcelona
Mensajes: 176
Antigüedad: 21 años, 7 meses Puntos: 2 | |
Pues sería algo así:
<script>
numero = "2953245";
var max = 0;
for(i = 0; i < numero.length; i++){
if(numero.substring(i,i+1) > max)max = numero.substring(i,i+1);
}
alert(max);
</script>
__________________ Foros en los que participo: |