Pull Clase 8 el navegador y el DOM #16

Open
ojeda.alexis wants to merge 1 commits from ojeda.alexis/clase-8-DOM:rama-nueva-clase-8 into main
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 0e97e56c3d - Show all commits

View File

@@ -1 +1,6 @@
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios.
console.log("JS vinculada bro");
const titulo = document.querySelector("h1");
console.log(titulo.textContent); // lee el texto actual
titulo.textContent = "La mejor comida del mundo";

View File

@@ -31,5 +31,6 @@
<p>¿Y este párrafo? ¿Será importante?</p>
<p>Este es otro párrafo del montón.</p>
</div>
<script src="ejercicios-clase-8.js"></script>
</body>
</html>