Posts by ajsalmeida • 9 points
3 posts
-
-1
votes1
answer120
viewsQ: Mongodb query returns empty array
I have a route that receives a parameter in the format yyyy-mm(year-mes), I get this in the function below and do a search in my mongoDB database, but returns []: const findYearMonth = async (req,…
-
0
votes2
answers117
viewsA: Write a program that reads a character and displays the boolean value True (true) if it is a digit between ' 0' and ' 9' if not False (false)
Can be done with integer conversion also. I made some modifications to the code to make it simple. Note that the function now returns True or False depending on what was typed. def cont(number):…
-
0
votes1
answer155
viewsQ: How to create multiple React components dynamically using Hooks?
I’m making an app on React which calculates compound interest and would like to know if anyone knows how to create several components at once dynamically. Example: if I put 12 months I will have to…