await | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

await

in JavaScript what is await used for is it same as of asynch ?

6th Nov 2022, 5:15 AM
Shubham Gawai
Shubham Gawai - avatar
2 Réponses
+ 1
Async keyword define a function as asynchrone, the function return a promise. Await keyword make JavaScript wait until promise return a value. https://code.sololearn.com/W9P05NmZ4Q06/?ref=app
6th Nov 2022, 7:34 AM
Roland
Roland - avatar
+ 1
thank you Roland (:
6th Nov 2022, 7:42 AM
Shubham Gawai
Shubham Gawai - avatar