your request function doesn't return the json result, only logs it. The function still returns a promise in my code, is it normal behavior? should the request function be sync when called as
Math teacher turned software engineer at New Relic, then BioRender via Launch School
and The Collab Lab. Software is made of humans; people over process.
Location
Portland, OR
Education
Launch School - Full Stack Development, Corban University - Math & Math Education
your request function doesn't return the json result, only logs it. The function still returns a promise in my code, is it normal behavior? should the request function be sync when called as
const res = request()?
ahh the function wrapping that should also be async, so it should be like:
given that you return the
jsoninstead of just logging it in therequest()function.Exactly what I needed to know too - thanks!