Iniciar sesión

Ver la versión completa : Establish Callback and Closure patterns Around Async Browser Behaviors



nguoivohinh
3 junio 2021, 10:08
https://i114.fastpic.ru/big/2021/0603/67/796b00d4520752d05458b39c1523a467.jpeg
MP4 | Video: h264, 1280x720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English | Duration: 10 Lessons (33m) | Size: 135.4 MB


JavaScript is full of inconsistent APIs. Wrapping those APIs in functions allows you to have full control over how to configure them and make them more reusable.

This becomes even more beneficial when dealing with the async nature of JavaScript. You'll learn how a broadcaster is a function that wraps another function (which we call listeners) and modifies the behavior. We will build up this pattern in a way that allows you to compose broadcasters together making your code more reusable.


https://i114.fastpic.ru/big/2021/0603/f1/699cee421c63f93071085b7e7f0477f1.jpeg

Download link:
***Contenido oculto. Abra la versión completa del tema para visualizar los enlaces.***