From 72734a59512b9daeead4181e98e0f0c8ddae7308 Mon Sep 17 00:00:00 2001 From: RodrigoJorge Date: Sat, 29 Oct 2022 12:37:03 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20atera=C3=A7=C3=B5es=20para=20performace?= =?UTF-8?q?=20na=20atividade=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Aula3.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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]); } } -