Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

await is only valid in async function

async function start() {
   ....

   const result = await helper.myfunction('test', 'test');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #await #valid #async #function
ADD COMMENT
Topic
Name
2+2 =