viernes, 3 de abril de 2020

JAVASCRIPT


Código


<!DOCTYPE html>
<html>
<!--Cabecera-->
<head lang=“es-Es”>
<title>Primera prueba con Javascript</title>
<meta charset="utf-8">
<script>
/*esto es un pequeño script*/
var Name= prompt("hola, ¿qué tal?¿cómo te llamas?");
alert("Hola 🤚🏻 "+Name );
alert("tu nombre es muy bonito, ¿lo sabías? 😊 ");
var Object= prompt("dime algo que te guste");
alert("a mi tambien me gusta/ gustan "+ Object);
alert("preguntame la fecha de hoy :) ");
alert(Date());
alert("ijijijij 😋");
</script>
</head>
<!--Cuerpo y contenido de mi página-->
<body>
<h1>Primera prueba de Javascript</h1>
<p>Esto es simplemente una prueba de Javascript.
hola :)
</p>
</body>
</html>

______________________________________________


EJEMPLO:













No hay comentarios:

Publicar un comentario

LENGUAJE HTML 5 Y CSS 3 (Sesión 12)

HTML: <!DOCTYPE html> <html lang="es-ES"> <head> <meta charset="UTF-8"> <title>...