When does the export statement run? Is it before callbacks run. In that case, var1 and var2 will be undefined. Or is it after callbacks are completed?
let var1 = someAsyncFunction(param1).then( result => anotherFunction(result));
let var2 = someAsyncFunction(param2).then( result => anotherFunction(result));
export {var1 ,var2}