agrega funcion cambiarTitulo

This commit is contained in:
maximo hidalgo
2026-05-18 18:12:52 -03:00
parent 167bbaaf54
commit 66ba54e04c
2 changed files with 8 additions and 0 deletions

View File

@@ -1 +1,8 @@
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios.
// ejercicio 1
function cambiarTitulo() {
const titulo = document.querySelector("h1");
titulo.textContent = "Comida Argentina";
}
//ejercicio 2

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>