DEV Community

Discussion on: Javascript: How to access the return value of a Promise object

Collapse
 
ramonak profile image
Katsiaryna (Kate) Lupachova

I'd say that the only way to get this JSON object outside the fetch() call is to assign it to a variable. If you could provide your piece a code it would be easier to understand and to help:)