From ccab67b2b797d0fe45c71cef86cdb20f85dc7229 Mon Sep 17 00:00:00 2001 From: Nicolas Murua Date: Wed, 13 May 2026 20:11:36 -0300 Subject: [PATCH] ejercicio 1 --- 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..a95f6ea 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 cambiarText(texto){ + const textoH1 = document.querySelector("h1"); + textoH1.textContent = texto; +} \ No newline at end of file diff --git a/index.html b/index.html index 0c393ac..64e23af 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.

+