let getData = () => {
return new Promise(function(resolve, reject) {
setTimeout(() => {
resolve('Great job, everyone...');
}, 500);
});
};
(async () => {
let main = async ()=> {
console.log(await getData());
};
await main();
console.log('Ron once said,');
})();