Posts by Douglas Ricardo Da Silva • 11 points
1 post
-
1
votes5
answers3418
viewsA: Check the amount of negative elements in a JS array
// Loop "FOR" to check an array that contains negative and positive numbers and display them. // Example 1: let listaDeGanhos = [10, 30, -10, -5, 40, 8, -2, -10, -15] let totalNegativos = 0 let…