Skip to content
Advertisement

Tag: yelp

Yelp API Request returning as “undefined”

I am making an API call to the yelp-fusion. However, when I try to log this result, the log shows as undefined. I assume this is due to something regarding promises or async functions. Note: I need to keep this in a function as I intend to export this function to other files. Answer I think you are handling the

Advertisement