Skip to content

Commit

Permalink
Renomear declaração var para let
Browse files Browse the repository at this point in the history
  • Loading branch information
WhoisBsa authored Sep 26, 2023
1 parent 11bda7e commit 8bb96f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desafio-11/WhoisBsa/javascript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down Expand Up @@ -67,4 +67,4 @@ function addToSequence(): void {
currentSequence = '';
}

console.log({ primeSequence });
console.log({ primeSequence });

0 comments on commit 8bb96f9

Please sign in to comment.