Solution#1560
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your solution is approved because it cleanly implements all of the core promise requirements. You correctly define two promises: one that resolves on a .logo click and one that rejects after 3 seconds using setTimeout, satisfying [CHECKLIST ITEM #1], [CHECKLIST ITEM #2], and [CHECKLIST ITEM #3]. Both promises use .then for success and .catch for error handling, and your handlers append the appropriate <div class="message"> and <div class="message error-message"> elements with the required texts to the body, covering [CHECKLIST ITEM #4]–[CHECKLIST ITEM #7]. There are no critical or blocking issues in the logic or functionality of src/scripts/main.js; everything behaves as described in the task. As a minor improvement (not required for this task), you could consider reusing or clearing existing .message elements so that multiple clicks or timeouts don’t clutter the DOM. Overall, your implementation is clear, readable, and functionally complete—well done.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
No description provided.