General Functionality
async function fname(var1, var2) {
var store = await new Promise(async (resolve, reject) {
//.....read function......
//return the value;
return data
});
console.log("output", store) //"has the required data
return store; //returning Promise Pennding
}
I can't return the stored value and it is returning Promise pending