From 0e97e56c3dbffe45c0d2c252010edb9b2e397057 Mon Sep 17 00:00:00 2001 From: Alexis08041992 Date: Thu, 28 May 2026 22:28:40 -0300 Subject: [PATCH] Ejercicio 1 --- ejercicios-clase-8.js | 7 ++++++- index.html | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index af39c43..ea7d628 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -1 +1,6 @@ -// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios. +console.log("JS vinculada bro"); + +const titulo = document.querySelector("h1"); + +console.log(titulo.textContent); // lee el texto actual +titulo.textContent = "La mejor comida del mundo"; 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.

+