Menu
i fetch some data in getData() and then it gets returned but i cant use the returned data since it becomes an [object promise]. i have tried alot of things but cant get it to work
“`
const test = async (a) => {
const data= await getData(a)
console.log(data) // **logs the correct data**
return data
}
console.log(“asd: “+ test(1)) // **logs [object promise] instead of the data**