From ad14f635178d23092dc7827749f936195fb868f9 Mon Sep 17 00:00:00 2001 From: Facundo Saucedo <43495919@terciariourquiza.edu.ar> Date: Thu, 14 May 2026 13:26:11 -0300 Subject: [PATCH] feat: add changeTittle function for DOM manipulation --- ejercicios-clase-8.js | 7 +++++++ index.html | 1 + 2 files changed, 8 insertions(+) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..97f5d50 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 + +const changeTittle = (a) => { + const tittle = document.querySelector('h1'); + tittle.textContent = a; +} \ No newline at end of file diff --git a/index.html b/index.html index 0c393ac..dcd25dc 100644 --- a/index.html +++ b/index.html @@ -32,4 +32,5 @@

Este es otro párrafo del montón.

+