Posts by Jorge Guerra Pires • 101 points
2 posts
-
0
votes3
answers252
viewsA: How to return value in a javascript function
Could you try this solution too? I tested locally, with a simpler problem. app.get('/test', async (req, res) => {//async garante o uso de await const value = await…
-
0
votes3
answers252
viewsA: How to return value in a javascript function
Hello, I’ve seen these problems before, I think it’s a variable scope problem, maybe if I use var in place of let, will work, but var is being deleted from the most modern codes. Below follows a…