ES8 Async Await
Preview
Code
<script>
async function hello(){
return "Hello async world";
}
hello().then(console.log);
</script>
<script>
async function hello(){
return "Hello async world";
}
hello().then(console.log);
</script>