Skip to content

Commit

Permalink
index.js modificado
Browse files Browse the repository at this point in the history
Atributo innerHTML reeemplazado por el atributo textContent en la
funcion limpiar.
  • Loading branch information
Wendy-Alejandra committed Dec 31, 2023
1 parent 14b6f44 commit c77457a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ function mostrarMetricas() {

function limpiar() {
cajaTexto.value= "";
wordCount.innerHTML= "word-count: 0";
characterCount.innerHTML= "character-count: 0";
characterNoSpacesCount.innerHTML= "character-no-spaces-count: 0";
numberCount.innerHTML= "number-count: 0";
numberSum.innerHTML= "number-sum: 0";
wordLengthAverage.innerHTML= "word-length-average: 0";
wordCount.textContent= "word-count: 0";
characterCount.textContent= "character-count: 0";
characterNoSpacesCount.textContent= "character-no-spaces-count: 0";
numberCount.textContent= "number-count: 0";
numberSum.textContent= "number-sum: 0";
wordLengthAverage.textContent= "word-length-average: 0";
}

// Eventos
Expand Down

0 comments on commit c77457a

Please sign in to comment.