From eda48c462d6d098283485a20c628863a4e3e5547 Mon Sep 17 00:00:00 2001 From: Facundo Saucedo <43495919@terciariourquiza.edu.ar> Date: Thu, 14 May 2026 14:40:46 -0300 Subject: [PATCH] feat: add changeImage function to update image source and alt text --- ejercicios-clase-8.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ejercicios-clase-8.js b/ejercicios-clase-8.js index f16cca3..1f3717f 100644 --- a/ejercicios-clase-8.js +++ b/ejercicios-clase-8.js @@ -68,4 +68,11 @@ const cleanList = (id) => { while (list.firstChild) { list.removeChild(list.firstChild); } -} \ No newline at end of file +} + +// Ejercicio 7 + +const changeImage = () => { + const image = document.querySelector('img'); + image.src = "foto2.jpg"; + image.alt = 'Locro';} \ No newline at end of file