From b3d7e12d246705394c73acf119609595f38d3b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Blas=20Alarc=C3=B3n?= <47840816@terciariourquiza.edu.ar> Date: Mon, 18 May 2026 18:13:11 -0300 Subject: [PATCH] Cree una funcion para el h1 para que cambie su texto a otro. --- ejercicios-clase-8.js | 4 ++++ index.html | 1 + 2 files changed, 5 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..11873ab 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1 +1,5 @@ // Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. +function cambiarTitulo() { + const titulo = document.querySelector("h1"); + titulo.textContent = "Agua"; +} \ No newline at end of file diff --git a/index.html b/index.html index 0c393ac..7eb6259 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,7 @@ comunes.
¿Y este párrafo? ¿Será importante?
Este es otro párrafo del montón.
+