diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..0f48bc1 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -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 + diff --git a/index.html b/index.html index 0c393ac..cf6c319 100644 --- a/index.html +++ b/index.html @@ -31,5 +31,6 @@

¿Y este párrafo? ¿Será importante?

Este es otro párrafo del montón.

+