I have a problem, it turns out that in my code, I have three names defined with the Array, but how can I request that my program first request the three names, that is, the user write 3 names whatever they are, sort alphabetically and then show them as an ordered result.
<html>
<head>
<title>Caracteres</title>
<meta charset="utf-8">
<style type="text/css">
body {
background-color:#DBDFDB;
}
</style>
</head>
<body>
<font color="#030303" face="georgia" size="5">
<center>
<TABLE BORDER=3 width="1000" height="50">
<TR><TD>
<font face="georgia" size="30">
<MARQUEE SCROLLAMOUNT=10 BEHAVIOR="alternate"><b>Programa para calcular caracteres</b></MARQUEE>
</font>
</TD></TR>
</TABLE>
<script type="text/javascript">
var nombres = new Array("Andres", "Juan", "Carlos");
nombres.sort();
for (var i=0; i<nombres.length; i++) {
document.write(nombres[i]);
}
</script>
</script>
</center>
</font>
</body>
</html>
bold text