I have code something like -
fetch(`${URL}${PATH}`)
.then(res => {
const d = res.json();
console.log("data is: ", d);
return d;
})
It logs data is: Promise { <pending> }
.
What to do to see results and utilize in next code statement?
Other questions and answers suggests to use then block to resolve, but I'm still seeing it unresolved.