From 8bb96f9d0f916b6b2f24ca7a1fcf1ac92d5e3ff5 Mon Sep 17 00:00:00 2001 From: Matheus B Date: Tue, 26 Sep 2023 17:57:45 -0300 Subject: [PATCH] =?UTF-8?q?Renomear=20declara=C3=A7=C3=A3o=20var=20para=20?= =?UTF-8?q?let?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- desafio-11/WhoisBsa/javascript/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desafio-11/WhoisBsa/javascript/index.ts b/desafio-11/WhoisBsa/javascript/index.ts index 542e2b9f1..80f1b7bbe 100644 --- a/desafio-11/WhoisBsa/javascript/index.ts +++ b/desafio-11/WhoisBsa/javascript/index.ts @@ -24,7 +24,7 @@ const isPrimeNumber = (number: number) => { }; isPrimeNumber(minPrime); -for (var i = minPrime - 1; i <= maxPrime; i += 2) +for (let i = minPrime - 1; i <= maxPrime; i += 2) isPrimeNumber(i); for (let i = 1; i < numbers.length; i++) { @@ -67,4 +67,4 @@ function addToSequence(): void { currentSequence = ''; } -console.log({ primeSequence }); \ No newline at end of file +console.log({ primeSequence });