hola , pregunta sobre funcion en js

(1/1)

ninto33:
<html>
<head>
<title>Problema</title>
</head>
<body>
<script language="javascript">
function mayorYea(x1,x2,x3)
{
if(x1>x2)
{
document.write('El ' + x1 + ' es el mayor');
}
else
{
if(x1>x3)
{
document.write('El ' + x1 + ' es el mayor');
}
else
{
if(x2>x1)
{
document.write('El ' + x2 + ' es el mayor');
}
else
{
if(x2>x3)
{
document.write('El ' + x2 + ' es el mayor');
}
else
{
document.write('El ' + x3 + ' es el mayor');
}
}
}
}
}
var valor1=prompt('Ingrese un numero');
var valor2=prompt('Ingrese otro numero');
var valor3=prompt('Ingrese otro numero');
valor1=parseInt(valor1);
valor2=parseInt(valor2);
valor3=parseInt(valor3);
function mayorYea(valor1,valor2,valor3);
</script>
</body>
</html>

¿que esta mal?

Nakp:
nada :)

que deberia hacer que no hace?

Navegación

[0] Índice de Mensajes