ES8 Async Await

Async functions introduced in ES2017.

Preview

Code

<script>
async function hello(){
  return "Hello async world";
}

hello().then(console.log);
</script>

More JS Versions Examples (7)