JavaScript: why is my async function returning a Promise instead of the value?
Asked 22d agoby IT-QA1 answer
javascriptasyncpromises
I have `const data = getData();` where getData is `async`, and `data` logs as `Promise { <pending> }` instead of the value. How do I get the resolved value?