Skip to content

Commit

Permalink
arregle el bucle infinito
Browse files Browse the repository at this point in the history
  • Loading branch information
alecapra96 committed Jan 13, 2021
1 parent 5859f60 commit f371a72
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions grupoFamiliar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let $buttonNext = document.getElementById("buttonNext");
let $placeImputs=document.getElementById("secondPart");
// let $buttonNext2=document.getElementById("click-button-next");
let $buttonMore;

let arrayGenerado = [] ;
$buttonNext.addEventListener("click",ocultarInicio);
$buttonNext.addEventListener("click",ShowsInputsCreated);

Expand All @@ -28,16 +28,14 @@ function ShowsInputsCreated(){ //Muestra imputs de acuerdo al numero que escribi
function CalcularPromedio(){
let verArray= [] ;
let $imputsGenerados = Array.from(document.getElementsByClassName("inputsGenerados"));
console.log($imputsGenerados);
console.log(verArray);


for (i=0;i<$imputsGenerados.length;i++)
{
let verArray = $imputsGenerados[i];
$imputsGenerados.push(verArray);
verArray = $imputsGenerados[i];
arrayGenerado.push(verArray.value);
}
console.log($imputsGenerados);

console.log(arrayGenerado);
return arrayGenerado;
}


Expand Down

0 comments on commit f371a72

Please sign in to comment.