Create 2 promises promise1 and promise2.
promise1should be resolved on aclickon.logo.promise2promise should be rejected in 3 seconds.- add success and error handlers for both promises
- success handler should append a
<div class="message">with the textPromise was resolved!to the body - error handler should append a
<div class="message error-message">with the textPromise was rejected!to the body
- Replace
<your_account>with your Github username in the link - Follow this instructions
- Run
npm run testcommand to test your code; - Run
npm run test:only -- -nto run fast test ignoring linter; - Run
npm run test:only -- -lto run fast test with additional info in console ignoring linter.
- Run