Skip to content

1luki9901/js_promise_basic_DOM

 
 

Repository files navigation

First promises

Create 2 promises promise1 and promise2.

  • promise1 should be resolved on a click on .logo.
  • promise2 promise should be rejected in 3 seconds.
  • add success and error handlers for both promises
  • success handler should append a <div class="message"> with the text Promise was resolved! to the body
  • error handler should append a <div class="message error-message"> with the text Promise was rejected! to the body

Instructions

  1. Replace <your_account> with your Github username in the link
  2. 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.

About

Create the firstest promises

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.4%
  • SCSS 28.8%
  • HTML 14.8%