solution 1.0#1524
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation correctly meets all task requirements. Both promise1 and promise2 are properly created with the exact required behavior — promise1 resolves on .logo click, and promise2 rejects after 3 seconds. The success handler appends <div class="message">Promise was resolved!</div> and the error handler appends <div class="message error-message">Promise was rejected!</div> to the body as specified. All checklist items pass. A minor quality note: reject(errorShow) passes the function reference itself rather than a proper error value, which works but could be cleaner with reject() or reject(new Error(...)). This is not a blocker since the .catch() handler ignores the parameter. The unused e parameter in the click handler is a minor style issue. Overall, your solution is functionally complete and correct.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
https://viktor-1995.github.io/js_promise_basic_DOM/