Cree una funcion que cambia la imagen

This commit is contained in:
2026-05-25 18:02:38 -03:00
parent c6e86eecc9
commit cfa41d97e9

View File

@@ -64,4 +64,11 @@ const limpiarList = (id) => {
} }
} }
// Ejercicio 7
const cambiarImg = () => {
const img = document.querySelector("img");
img.src = "foto2.jpg";
img.alt = "Locro";
}