can you call an async function with .then().catch() construct ?
const bar = require('./foofile');
let result = '';
bar.fooFunc()
.then(function(data){
data.forEach(function(value){
//add a new line
result += `${value}`;
})
})
.catch(error => console.log(error));
file : foofile.js
async function fooFunc(){
//this returns an array
}