Can somebody pls assess the code.
Thank you
Can somebody pls assess the code.
Thank you
Hi @brusli
Congratulations! Everything works correctly
Just two simplifications (matter of taste):
for...of
or forEach
loopssetAttribute()
to assign a value to src
. Direct assignment is fine.newImage.addEventListener('click', e => displayedImage.src = e.target.src);
I hope that helps!
Happy coding,
Michael