Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript async await & Promise

we can only use await keyword before a function that

returns either a promise or is itself async.

Note: we can use async function or function returning
a Promise with .then()
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Javascript #async #await #Promise
ADD COMMENT
Topic
Name
1+1 =