Posts by VagnerFerreira • 1 point
1 post
-
-1
votes6
answers1784
viewsA: Quantifying negative values in an array
var listaDeGanhos = [10, 30, -10, -5, -1, 40] var totalNegativos = 0 for (var i = 0; i < listaDeGanhos.length; i++){ if(listaDeGanhos[i] < 0){ …
javascriptanswered VagnerFerreira 1