- Добавил: literator
- Дата: 18-12-2022, 03:08
- Комментариев: 0

Автор: Nicholas C. Zakas
Издательство: Leanpub
Год: 2022-02-19
Страниц: 90
Язык: английский
Формат: pdf (true), mobi, epub
Размер: 10.3 MB
Learn all about jаvascript promises from veteran jаvascript author Nicholas C. Zakas. One of the most powerful aspects of jаvascript is how easily it handles asynchronous programming. As a language created for the web, jаvascript needed to respond to user interactions such as clicks and key presses from the beginning, and so event handlers such as onclick were created. Event handlers allowed developers to specify a function to execute at some later point in time in reaction to an event. Node.js further popularized asynchronous programming in jаvascript by using callback functions in addition to events. As more and more programs started using asynchronous programming, events and callbacks were no longer sufficient to support everything developers wanted to do. Promises are the solution to this problem.