agrega funcion cambiarTitulo

This commit is contained in:
maximo hidalgo
2026-05-18 18:12:52 -03:00
parent 167bbaaf54
commit 66ba54e04c
2 changed files with 8 additions and 0 deletions

View File

@@ -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