Assessment needed for Image Gallery Test

Kindly requesting you to assess my Image Gallery test . I used an array to store the images since I am using Codepen.
Please let me know your feedback. Here is the link:

Congratulations @tosona_aneesh

Very well coded :+1:
To make it a bit simpler you could also use dot notation to set the attributes. For example:

newImage.src = file;

Just be aware that there are two attributes that have different names in JS

  • class :arrow_right: className
  • for :arrow_right: htmlFor

Bonus question: Why are these two names different?

See you,
Michael

PS: Your email address is visible in your post. It ended up in the optional “name” field of your profile. I recommend removing it.