Posts by Renato Souza • 82 points
5 posts
-
0
votes2
answers376
viewsA: How to request a page in Nodejs?
You can use the http or https from Ode himself to make the call. This example is using the Mailgun api: const https = require('https'); const config = require('./config'); // Meu ficheiro de…
-
-1
votes2
answers191
viewsA: Nodejs debug using visual studio code
If you want a solution with Node do the following, put Debugger, in code snippets and in the vscode terminal type the command: Node Inspect filename.js 0 Function facaalgumthing(a+b) { Debugger;…
-
7
votes2
answers290
viewsA: How to debug Nodejs code?
function facaalgumacoisa(a+b) { debugger; return a+b; } let test = 0; debugger; in the command line type node inspect nomedoarquivo.js…
-
0
votes2
answers421
viewsA: Javascript - error callback is not defined
It returns the value and is not receiving the value within the for loop. Therefore, when Voce places a string in var r the Calback sends the initial value of the variable and not the value MODIFIED…
-
-1
votes4
answers84
viewsA: How to do a sequential for with nodejs version 8?
Let cont = 0; const limit = modelMatchesList.length; for (Let i = 0; i < modelMatchesList.length; i++) { if (someVar) { DB.query("example(?,?)", [foo, bar]); } count++ if (count == limit) {…