Async in JavaScript



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


async function fetch() {



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


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

nvm install 7
nvm alias default 7 is a tool that transpiles es7 code to es5 code that works on older node.