- Replace
<your_account>
with your Github username in the link - Follow this instructions
- There are no tests for this task so use
npm run lint
command instead ofnpm test
- There are no tests for this task so use
In this task, you should create 3 promises.
- The first promise should be resolved on a
click
indocument
or rejected in 5 seconds if not clicked. - The second promise should be resolved only on
left
orright
click ondocument
.middle
button should be ignored. - The third promise should be resolved only if both
left
andright
clicks happened.
That's all.
Hint: It doesn't matter in what way you choose to notify users about resolved or rejected promises. You can use DOM or console.log
.