Create 2 promises promise1
and promise2
.
promise1
should be resolved on a click
on .logo
.promise2
promise should be rejected in 3 seconds.<div class="message">
with the text Promise was resolved!
to the body<div class="error-message">
with the text Promise was rejected!
to the body<your_account>
with your Github username in the link
npm run test
command to test your code;npm run test:only -- -n
to run fast test ignoring linter;npm run test:only -- -l
to run fast test with additional info in console ignoring linter.