Posts by MM Willi • 9 points
1 post
-
0
votes1
answer72
viewsQ: I need to return in % the value of how many numbers are positive, the amount of zero and negative numbers, in this order, but my code is wrong
function maisMenos(valores){ var qtd = valores.length; var neg = valores.filter(nr=> nr < 0).length; var pos = valores.filter(nr=> nr > 0).length; var zer =…