- Replace
<your_account>
with your Github username in the link - Follow this instructions
- Run
npm run test
command to test your code; - Run
npm run test:only -- -n
to run fast test ignoring linter; - Run
npm run test:only -- -l
to run fast test with additional info in console ignoring linter.
- Run
In this task you should create 2 promises.
- The first promise should be resolved on a
click
on.logo
. - The second promise should be rejected in 3 seconds.
That's all.
Implementation tips:
- print two messages to notify a user about resolved or rejected promise;
- the message is block element with class
message
for the resolved promise anderror-message
for the rejected promise; - the message about resolved promise should not disappear;
- the messages should have text
Promise was resolved!
andPromise was rejected!
.