Global const from async functions?

Hi All,

I am trying to create a var or const from the return of a async function that can be utilised as a global const or variable, I have the following code:


const chain = // what code is needed?

async function newFunction() {
 const data = await new data();
 return data;
}

console.log(chain);

if there is anyone who can help with this it would be greatly appreciated.

Best wishes,

Si