From 66ba54e04c772583fdfa0ffb43eeda12c7216b6d Mon Sep 17 00:00:00 2001 From: maximo hidalgo <47135001@gmail.com> Date: Mon, 18 May 2026 18:12:52 -0300 Subject: [PATCH] agrega funcion cambiarTitulo --- 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..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.
+