Back to Browse

Promise e Callback no JavaScript - Aprenda usar o async e await e o then e catch (Tutorial)

6.5K views
May 10, 2022
28:14

✅ Curso Profissional TypeScript: ▸ https://cursos.coffstack.com.br/pts?utm_campaign=organico&utm_medium=content&utm_source=youtube&utm_content=js_promise Se você está com dificuldade para entender o que é uma chamada assíncrona, uma Promise ou uma callback no JavaScript esse vídeo é para você! Aprenda a consumir APIs, obter as resposta e tratar erros com os métodos then e catch e também com a nova sintaxe do JavaScript: async / await. Siga a gente em nossas redes sociais: Instagram: @coffstack https://www.instagram.com/coffstack/ Twitter: @coffstack https://twitter.com/coffstack Blog: https://blog.coffstack.com/ Esse vídeo é apresentado por Lucas Garcez, bacharel em Ciência da Computação, engenheiro de software e CEO na Coffstack. Instagram: @lucasgar6 https://www.instagram.com/lucasgar6/ 00:00 - Introdução 00:40 - O que é comunicação Assíncrona? 02:28 - Código síncrono (exemplo) 03:33 - Código assíncrono (exemplo) 05:56 - GitHub API (exemplo) 06:27 - Chamada assíncrona a API 07:13 - O que é uma Promise? 08:43 - then - (resolved e rejected) 10:03 - O que é uma callback? 10:54 - onFulfilled function (Promise Resolvida) 12:35 - onRejected (Promise Rejeitada) 13:40 - catch - (rejected) 14:24 - Debug Promise 17:05 - Porque async / await ? 18:13 - Callback Hell (O pesado do then / catch) 21:45 - async / await na PRÁTICA 24:39 - async / await tratando erro com try / catch 26:20 - async / await (Debug) 27:27 - Conclusão

Download

1 formats

Video Formats

360pmp453.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Promise e Callback no JavaScript - Aprenda usar o async e await e o then e catch (Tutorial) | NatokHD