The keywords async and await are available in Node.js applications and not yet supported for client side JavaScript. In order to use these keywords, your Node.js application needs to be using the ES7 standards. Here's a nice introduction to the core concepts. Also, here is the official ECMAScript github repo that documents it.
The calling function must be marked as async and then another async method within that call can then be awaited using the await keyword, just like is done in C#. Examples of the syntax are found here.
async function chainAnimationsAsync(elem, animations) {
let ret = null;
try {
for(const anim of animations) {
ret = await anim(elem);
}
} catch(e) { /* ignore and keep going */ }
return ret;
}