trying to use async/await with express. But getting error
const getData = async () => {
^
SyntaxError: Unexpected token (
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
Node version - 8.5.0
Part of code
const getData = async () => {
return 'all done';
}
Any ideas? Thanks