NodeJS Patterns

December 5, 2018

The JavaScript Async/Await was introduced in ES8. Wait what the heck is ES8? ES is short for ECMAScript which is a standard and JavaScript is the most popular implementation of that standard. 

async function groupUp(){
  try{
    consthello=awaitsayHello();
    constleave=awaititTime2Leave();
   }catch(error){
    console.log('Error',error.message);
  }
}
Category: nodejs

Comments

Write a Reply or Comment

Your email address will not be published. Required fields are marked *


Tags