Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

usecase of async/await

It allows the use of await Keyword inside the functions with async keyword. Using await in any other way will cause a syntax error. The use of the async keyword happens at the beginning of the function declaration. In the case of arrow function, async is put after the “=” equal sign and before the “{}” parentheses.
Source by www.google.com #
 
PREVIOUS NEXT
Tagged: #usecase
ADD COMMENT
Topic
Name
8+9 =