forked from caroline_moran/algoritmos-para-estudar
Merge pull request 'feat: aterações para performace na atividade 1' (#2) from feature/atividades into main
Reviewed-on: #2
This commit is contained in:
commit
74fc6b2d1d
@ -20,9 +20,9 @@
|
||||
for(let j = 0;j < 20; j++){
|
||||
indice = Math.floor(Math.random()* letras.length);
|
||||
array[j] = letras[indice];
|
||||
if(j % 3 == 0){
|
||||
array[j] = "0";
|
||||
}
|
||||
for(let i = 2;i < 20; i += 3){
|
||||
array[i] = "0";
|
||||
}
|
||||
let string = array.join("");
|
||||
console.log(string);
|
||||
@ -48,7 +48,6 @@
|
||||
console.log(a[i]);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user