Async javascript self loading function

A self calling asynchronous function in Javascript

(async ()=>{
    console.log('I am asynchronous!');
    let result = await someAsyncFunction();
    console.log('done!');
})();
Back to top