This repository includes a hands-on exercise on using asynchronous functions (setTimeout(), setInterval()), as well as methods of the Promise class.
- Color switch.
It starts changing the background color after pressing the
start
button with a certain frequency and ends after pressing thestop
button.. - 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. - 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.
- 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.
-
Clone the repository:
git clone https://github.com/ShevchenkoOl/asynchrony-promises.git
-
use
npm install
command to install package dependencies -
Navigate to the relevant section to explore the corresponding material.
-
Open files and study the provided code examples.
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!