Fix non-standard syntax

This commit is contained in:
Eric Lavault
2021-10-10 19:11:57 +02:00
parent 5f45b540b9
commit 8a7be96c9d

View File

@ -31,7 +31,7 @@ const getCollatzSequenceLength = (num, seqLength) => {
}
}
export const findLongestCollatzSequence = (limit = 1_000_000) => {
export const findLongestCollatzSequence = (limit = 1000000) => {
let startingPointForLargestSequence = 1
let largestSequenceLength = 1
for (let i = 2; i < limit; i++) {