Cree una funcion para cambiar h1

This commit is contained in:
2026-05-21 18:33:46 -03:00
parent 167bbaaf54
commit d5979f13db
2 changed files with 7 additions and 0 deletions

View File

@@ -1 +1,7 @@
// Vincular este archivo al archivo index.html, y resolver aquí los ejercicios.
// Ejercicio 1
const changeText = (str) => {
const h1 = document.querySelector("h1");
h1.textContent = str;
}