Posts by Gustavo • 13 points
1 post
-
1
votes3
answers333
viewsQ: Return only the positive values of an array
Ask me to do a function, which takes a parameter (array) and return positive balances (profitably) of that month, using for and probably a if. Example: saldosDeMesesComLucro([100, 20, 0, -10, 10]);…
javascriptasked Gustavo 13