Dia 29
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user