Posts by Fabio Jr • 31 points
6 posts
-
1
votes1
answer206
viewsA: Initialize a Node.js server and connect to MS SQL
Good afternoon Luiz, I don’t know your need but if in the future you need use routes, try using express, is super easy and has a lot of content on the net.
-
0
votes1
answer48
viewsA: Fetch values in an array with a condition
Good afternoon, I don’t know if I understood you right but how do you need to validate if mmr is greater/less than 5%, you can validate if mmr < 11 will meet the 2 conditions.
javascriptanswered Fabio Jr 31 -
1
votes3
answers638
viewsA: Comparison of strings in exercise!
You can also do so: function filosofoHipster(profissao, nacionalidade, km){ return (profissao === 'Músico' && nacionalidade === 'Brasil') && (km > 2) } filosofoHipster('Músico',…
-
0
votes3
answers120
viewsA: Problem with javascript filter in various JSON
Vitor como products is an array and probably will have several records within the same category, if you pass the index as Leandrade said, you may have errors, try to do so: let…
-
0
votes3
answers1466
views -
1
votes1
answer383
viewsA: Mongoose is updating wrong object in mongodb
I don’t know if you have any server configuration file, but one of the things that might be happening is the express doesn’t understand req.body, in case you haven’t put another place, add that…