var a=0; setTimeout(function() { Addition(); }, 10000); async function Addition() { for (var i=0; i < arguments.length; i++) { a += arguments[i]; } return a; } secondFunction(); async function secondFunction() { await Addition(); a = a + 10; return a; }; console.log(Addition(2, 3));
setTimeout
const later = (delay) => new Promise(resolve => setTimeout(resolve, delay));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)