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