Posts by Breno Souza • 51 points
2 posts
-
4
votes6
answers2258
viewsA: Exercise: loop and for
Good afternoon! Follow the solution below, as requested. function passandoPor() { for(var i = 0; i <=3; i++) { var x = i; console.log("aqui eu tenho o valor de " + x); } } Any doubt I’m…
-
0
votes2
answers282
viewsA: Array return
Good afternoon! Follow the solution below, as requested. function saldoDeMesesComLucro(umPeriodo) { var arrayMesesLucro = []; var filtro = umPeriodo.filter(positivo); for (let mes=0; mes<…