Posts by Guilherme Oliveira • 23 points
1 post
-
2
votes3
answers209
viewsQ: Undefined return when calling function
The console.log(Return) is ok, but only Undefined’s return, could anyone tell me why? let result = []; module.exports = { async atualizar() { await request(url, (err, res, body) => { if (err)…