Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript await

await new Promise(resolve => setTimeout(resolve, 5000)); // 5 second wait

//or

(async () => {
await new Promise(resolve => setTimeout(resolve, 5000)); // 5 second wait
})();
 
PREVIOUS NEXT
Tagged: #javascript #await
ADD COMMENT
Topic
Name
8+2 =