Posts by Daniel Martins • 11 points
2 posts
-
0
votes1
answer116
viewsA: Function returning [ Promise { <pending> } ]
Hi, I suspect it prints in the console.log what you want but returns in the function the wrong value, is that it? If this is the case it may be that returning the value of the Promise instead of the…
-
1
votes1
answer39
viewsA: Variables in JS Node
The variable is correct, the problem is that in Javascript IO (network, file, etc) tasks are performed asynchronously. The problem here is that the log that returns "0" is executed during the…