Skip to content

Solution#1766

Open
mariiamad wants to merge 1 commit into
mate-academy:masterfrom
mariiamad:develop
Open

Solution#1766
mariiamad wants to merge 1 commit into
mate-academy:masterfrom
mariiamad:develop

Conversation

@mariiamad
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Your solution correctly implements all functional requirements. The code uses event delegation by attaching a single click listener to the #thumbs container, and evt.target.closest('a') properly handles both cases: clicking on an img element (finds parent a) or clicking directly on the a element. The main image source is successfully updated with the clicked thumbnail's href. The JavaScript logic is sound and complete.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants