Skip to content

ShevchenkoOl/asynchrony-promises

Repository files navigation

Asynchrony and Promises

This repository includes a hands-on exercise on using asynchronous functions (setTimeout(), setInterval()), as well as methods of the Promise class.

Tasks

  1. Color switch. It starts changing the background color after pressing the start button with a certain frequency and ends after pressing the stop button..
  2. Countdown timer We use the flatpickr and notiflix library. We select the desired date in the future and press the start button, the timer begins counting down to today.
  3. promise generator The HTML contains form markup in the fields of which the user will enter the first delay in milliseconds, the step to increase the delay for each promise after the first, and the number of promises that need to be created.
  4. Digital clock Using the function setInterval() and Date we have created three types of watches, electronic with the day of the week, month and year, regular electronic and dial watches.

How to Use the Repository

  1. Clone the repository: git clone https://github.com/ShevchenkoOl/asynchrony-promises.git

  2. use npm install command to install package dependencies

  3. Navigate to the relevant section to explore the corresponding material.

  4. Open files and study the provided code examples.

Author

This repository was created and maintained by Oleksii Shevchenko. Questions, suggestions and feedback can be directed to email or linkedin profile. If you have any questions or suggestions, feel free to create an issue or submit a pull request.

Best of luck with learning JavaScript!