This commit is contained in:
Marcos Lopez
2024-01-17 13:51:01 +01:00
parent f86dee8067
commit ad08f8d30d
13 changed files with 617 additions and 1 deletions

View File

@@ -15,7 +15,7 @@
<br>
<br>
<script>
//document.write(`Numero de caracteres 'u' en texto1: ${texto1.split('u').length-1}`) - falla cuando la ultima letra es la que buscas, habria que controlarlo
//document.write(`Numero de caracteres 'u' en texto1: ${texto1.split('u').length-1}`)
let contador = 0;
for (let i = 0; i < texto1.length; i++) {
if (texto1.charAt(i) === 'u') {