diff --git a/Aula3.html b/Aula3.html index 57f686d..586d6bd 100644 --- a/Aula3.html +++ b/Aula3.html @@ -20,9 +20,9 @@ for(let j = 0;j < 20; j++){ indice = Math.floor(Math.random()* letras.length); array[j] = letras[indice]; - } - for(let i = 2;i < 20; i += 3){ - array[i] = "0"; + if(j % 3 == 0){ + array[j] = "0"; + } } let string = array.join(""); console.log(string); @@ -48,7 +48,6 @@ console.log(a[i]); } } -