Created
December 27, 2019 22:07
-
-
Save Fhernd/3d5fa76f26400c9093a88ab3b975104b to your computer and use it in GitHub Desktop.
// Ejercicio 36: Agregar el contenido de un arreglo como texto por línea de un párrafo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>jQuery - Ejercicios</title> | |
<link rel="stylesheet" href="css/styles.css"> | |
</head> | |
<body> | |
<h1>jQuery - Ejercicio 36</h1> | |
<h3>Lenguajes de programación</h3> | |
<p id="lenguajes"></p> | |
<script src="js/jquery-3.4.1.min.js"></script> | |
<script src="js/ex036-script.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ejercicio 36: Agregar el contenido de un arreglo como texto por línea de un párrafo. | |
$(document).ready(()=>{ | |
let lenguajes = ['JavaScript', 'Python', 'C++', 'Java', 'PHP', 'C']; | |
$('#lenguajes').html(lenguajes.join('<br/>')); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.highlight{ | |
font-style: italic; | |
background-color: #ffff00; | |
} | |
.features{ | |
font-style: italic; | |
background-color: crimson; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment