Posts by Gabriel A. • 36 points
2 posts
-
1
votes1
answer50
viewsA: setInterval() I’m not getting it to work
You got two problems there The interval of the first call it points correctly to the #Wall-1 document.querySelector("#wall-1").id // Te da o valor de: wall-1 document.querySelector("#wall-1").id =…
-
1
votes6
answers1784
viewsA: Quantifying negative values in an array
let listaDeGanhos = [10, 30, -10, -5, -1, 40] let totalNegativos = 0 listaDeGanhos.forEach(function (valor) { if(valor < 0){ totalNegativos++ } }) console.log(totalNegativos) // 3 Now if the…
javascriptanswered Gabriel A. 36