EJERCICIO 1 CONCEPTO 2 <html> <head> <title>Problema</title> </head> <body> <script language=&quot;javascript&quot;> document.write('Carlos'); document.write(&quot;<br>&quot;); document.write('17 años'); </script> </body> </html>
EJERCICIO 1 CONCEPTO 3 <html> <head> <title>Problema</title> </head> <body> <script language=&quot;javascript&quot;> var nombre='manuel' var sueldo=400000 document.write('el operario '+nombre); document.write(' tiene un sueldo de '+sueldo); </script> </body> </html>
EJERCICIO 1 CONCEPTO 4 <html> <head> </head> <body> <script language=&quot;JavaScript&quot;> var nombre; var correo; nombre=prompt('Ingrese su nombre:',''); correo=prompt('Ingrese su correo electronico:',''); document.write('Hola '); document.write(nombre); document.write(' asi que tu correo electronico es '); document.write(correo); </script> </body> </html>
EJERCICIO 1 CONCEPTO 5 <html> <head> <script language=&quot;JavaScript&quot;> var valor1; valor1=prompt('Ingrese el valor del lado:',''); var producto=valor1*4; document.write('El perimetro es '); document.write(producto); </script> </head> <body> </body> </html>
EJERCICIO 2 CONCEPTO 6 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var nombre; var clave; var clave2; nombre=prompt('Ingrese nombre:',''); clave=prompt('Ingrese su clave:',''); clave2=prompt('Ingrese su clave nuevamente:',''); if (clave==clave2) { document.write(nombre+' la calve es correcta '); } </script> </body> </html>
EJERCICIO 1 CONCEPTO 7 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2; num1=prompt('Ingrese el primer número:',''); num2=prompt('Ingrese el segundo número:',''); num1=parseInt(num1); num2=parseInt(num2); var suma=num1+num2 var resta=num1-num2 var producto=num2*num1 var division=num1/num2 if (num1>num2) { document.write('La suma es '+suma); documen.write(' y su resta es '+resta); } else { document.write('el producto es '+producto); document.write(' y su division es '+division); } </script> </body> </html>
EJERCICIO 1 CONCEPTO 8 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2,num3; num1=prompt('Ingrese 1er. numero:',''); num2=prompt('Ingrese 2do. numero:',''); num3=prompt('Ingrese 3er. numero:',''); //Convertimos los 3 string en enteros num1=parseInt(num1); num2=parseInt(num2); num3=parseInt(num3); if (num1>num2) { document.write(num1); } else { if (num2>num3) { document.write(num2); } else { document.write(num3); } } </script> </body> </html>
EJERCICIO 3 CONCEPTO 9 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2,num3; num1=prompt('Ingrese primer número:',''); num2=prompt('Ingrese segundo número:',''); num3=prompt('Ingrese tercer número:',''); num1=parseInt(num1); num2=parseInt(num2); num3=parseInt(num3); if (num1<10 && num2<10 && num3<10) { document.write('todos los numeros son menores a 10'); } else { if (num1>10 && num2<10 && num3>10) { document.write('el segundo numero es menor que 10');  } else { if (num1>10 && num2>10 && num3<10) { document.write('el tercer numero es menor que 10');  } else { document.write('todos los numeros son mayores que 10'); } } } </script> </body> </html>
EJERCICIO 1 CONCEPTO 10 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2,num3; num1=prompt('Ingrese numero 1:',''); num2=prompt('Ingrese numero 2:',''); num3=prompt('Ingrese numero 3:',''); num1=parseInt(num1); num2=parseInt(num2); num3=parseInt(num3); if (num<10 || num2<10 || num3<10) { document.write('todos los numeros son menores a diez.'); } </script> </body> </html>
EJERCICIO 1 CONCEPTO 11 <html> <head> <title>Problema</title> </head> <body> <script language=&quot;javascript&quot;> alert(&quot;digite 1. casa 2. mesa 3. perro 4. gato&quot;) var op = prompt(&quot;entre la opcion:&quot;, &quot; &quot;); var op = parseInt (op); switch(op) { case 1: alert(&quot;home&quot;); break; case 2: alert(&quot;table&quot;); break; case 3: alert(&quot;dog&quot;); break; case 4: alert(&quot;cat&quot;); break; default:alert(&quot;numero no valido, ingrese un numero de 1 a 4&quot;); } </script> </body> </html>
 
 
 

Presentacion Ejercicios Javascriptya.com.ar

  • 1.
    EJERCICIO 1 CONCEPTO2 <html> <head> <title>Problema</title> </head> <body> <script language=&quot;javascript&quot;> document.write('Carlos'); document.write(&quot;<br>&quot;); document.write('17 años'); </script> </body> </html>
  • 2.
    EJERCICIO 1 CONCEPTO3 <html> <head> <title>Problema</title> </head> <body> <script language=&quot;javascript&quot;> var nombre='manuel' var sueldo=400000 document.write('el operario '+nombre); document.write(' tiene un sueldo de '+sueldo); </script> </body> </html>
  • 3.
    EJERCICIO 1 CONCEPTO4 <html> <head> </head> <body> <script language=&quot;JavaScript&quot;> var nombre; var correo; nombre=prompt('Ingrese su nombre:',''); correo=prompt('Ingrese su correo electronico:',''); document.write('Hola '); document.write(nombre); document.write(' asi que tu correo electronico es '); document.write(correo); </script> </body> </html>
  • 4.
    EJERCICIO 1 CONCEPTO5 <html> <head> <script language=&quot;JavaScript&quot;> var valor1; valor1=prompt('Ingrese el valor del lado:',''); var producto=valor1*4; document.write('El perimetro es '); document.write(producto); </script> </head> <body> </body> </html>
  • 5.
    EJERCICIO 2 CONCEPTO6 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var nombre; var clave; var clave2; nombre=prompt('Ingrese nombre:',''); clave=prompt('Ingrese su clave:',''); clave2=prompt('Ingrese su clave nuevamente:',''); if (clave==clave2) { document.write(nombre+' la calve es correcta '); } </script> </body> </html>
  • 6.
    EJERCICIO 1 CONCEPTO7 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2; num1=prompt('Ingrese el primer número:',''); num2=prompt('Ingrese el segundo número:',''); num1=parseInt(num1); num2=parseInt(num2); var suma=num1+num2 var resta=num1-num2 var producto=num2*num1 var division=num1/num2 if (num1>num2) { document.write('La suma es '+suma); documen.write(' y su resta es '+resta); } else { document.write('el producto es '+producto); document.write(' y su division es '+division); } </script> </body> </html>
  • 7.
    EJERCICIO 1 CONCEPTO8 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2,num3; num1=prompt('Ingrese 1er. numero:',''); num2=prompt('Ingrese 2do. numero:',''); num3=prompt('Ingrese 3er. numero:',''); //Convertimos los 3 string en enteros num1=parseInt(num1); num2=parseInt(num2); num3=parseInt(num3); if (num1>num2) { document.write(num1); } else { if (num2>num3) { document.write(num2); } else { document.write(num3); } } </script> </body> </html>
  • 8.
    EJERCICIO 3 CONCEPTO9 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2,num3; num1=prompt('Ingrese primer número:',''); num2=prompt('Ingrese segundo número:',''); num3=prompt('Ingrese tercer número:',''); num1=parseInt(num1); num2=parseInt(num2); num3=parseInt(num3); if (num1<10 && num2<10 && num3<10) { document.write('todos los numeros son menores a 10'); } else { if (num1>10 && num2<10 && num3>10) { document.write('el segundo numero es menor que 10'); } else { if (num1>10 && num2>10 && num3<10) { document.write('el tercer numero es menor que 10'); } else { document.write('todos los numeros son mayores que 10'); } } } </script> </body> </html>
  • 9.
    EJERCICIO 1 CONCEPTO10 <html> <head> </head> <body> <script language=&quot;javascript&quot;> var num1,num2,num3; num1=prompt('Ingrese numero 1:',''); num2=prompt('Ingrese numero 2:',''); num3=prompt('Ingrese numero 3:',''); num1=parseInt(num1); num2=parseInt(num2); num3=parseInt(num3); if (num<10 || num2<10 || num3<10) { document.write('todos los numeros son menores a diez.'); } </script> </body> </html>
  • 10.
    EJERCICIO 1 CONCEPTO11 <html> <head> <title>Problema</title> </head> <body> <script language=&quot;javascript&quot;> alert(&quot;digite 1. casa 2. mesa 3. perro 4. gato&quot;) var op = prompt(&quot;entre la opcion:&quot;, &quot; &quot;); var op = parseInt (op); switch(op) { case 1: alert(&quot;home&quot;); break; case 2: alert(&quot;table&quot;); break; case 3: alert(&quot;dog&quot;); break; case 4: alert(&quot;cat&quot;); break; default:alert(&quot;numero no valido, ingrese un numero de 1 a 4&quot;); } </script> </body> </html>
  • 11.
  • 12.
  • 13.