Async in JavaScript

javascript
nodejs

#1

What do I need for the async/await pattern to work in a Node project?

Like

async function fetch() {

}


#2

you can either use babel, or upgrade node to version >=7


#3

How can I upgrade Node inside Cloud9?
What is Babel?


#4
nvm install 7
nvm alias default 7

https://babeljs.io/ is a tool that transpiles es7 code to es5 code that works on older node.