I have the problem that they ask me to do a function cantidadDeMesesConGanancias
that I add the positive elements ...
I do ...
Function cantidadDeMesesConGanancias(meses){
Var sumatoria=0
For(Var i=0;i <meses.length;i++){
If(meses[i] ›0){
Sumatoria=sumatoria+meses
}
}
Return sumatoria}
And he gives me an error