Tips For Using Async/Await – Write Better JavaScript!

Async/Await is a much cleaner syntax for working with promises than using .then(). Let’s take a look at how to convert an asynchronous function from using .then() to using async/await and learn a few tips along the way.

00:00 – Intro
00:45 – Fetch Example with .then
01:30 – Convert Promises to Async/Await
04:40 – Use Try/Catch for Errors
06:30 – Async Functions Return a Promise
07:40 – Use IIfe for Top-Level Await
09:00 – Promise.all()

_____________________________________________

Newsletter 🗞
Interested in exclusive content and discounts? 🤯 Sign up for the newsletter!
https://www.jamesqquick.com
_____________________________________________

Connect with me 😀
Live streams on Twitch – https://twitch.tv/jamesqquick
Follow me on Twitter – https://www.twitter.com/jamesqquick
Join the 💬 Discord Server 💬 – https://discord.gg/vM2bagU
_____________________________________________

COURSES 💻
Learn how to build Fullstack apps with React and Serverless Functions – https://www.jamesqquick.com/courses/react-and-serverless-fullstack-developmnent
Learn everything you need to know about Visual Studio Code – https://www.udemy.com/learn-visual-studio-code/
Build a Quiz App – https://www.udemy.com/build-a-quiz-app-with-html-css-and-javascript/

source by James Q Quick

javascript

Mourad ELGORMA

Fondateur de summarynetworks, passionné des nouvelles technologies et des métiers de Réseautique , Master en réseaux et système de télécommunications. ,j’ai affaire à Pascal, Delphi, Java, MATLAB, php …Connaissance du protocole TCP / IP, des applications Ethernet, des WLAN …Planification, installation et dépannage de problèmes de réseau informatique……Installez, configurez et dépannez les périphériques Cisco IOS. Surveillez les performances du réseau et isolez les défaillances du réseau. VLANs, protocoles de routage (RIPv2, EIGRP, OSPF.)…..Manipuler des systèmes embarqués (matériel et logiciel ex: Beaglebone Black)…Linux (Ubuntu, kali, serveur Mandriva Fedora, …). Microsoft (Windows, Windows Server 2003). ……Paquet tracer, GNS3, VMware Workstation, Virtual Box, Filezilla (client / serveur), EasyPhp, serveur Wamp,Le système de gestion WORDPRESS………Installation des caméras de surveillance ( technologie hikvision DVR………..). ,

21 réflexions sur “Tips For Using Async/Await – Write Better JavaScript!

Laisser un commentaire