Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

async arrow function javascript

//very simple
async()=>{}
/*
 *it's the same just like a normal arrow function,
 *but you can also use await (*/
  const get=async(url,action)=>{(await fetch(url)).text().then(action)}
                           /*)
 *
 */
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #async #arrow #function #javascript
ADD COMMENT
Topic
Name
5+6 =