Need help - Smallest Common Multiple

hello, I need help in this challenge “Smallest Common Multiple”.
this code is working fine with all numbers that are less than 13. but when trying 13 or bigger number, it says “RangeError: Potential infinite loop.”. can anyone know why?

FCC uses an infinite loop protection to keep your browser from crashing. If the code runs for longer than a set amount of time, it stops execution and warns you about the potential loop. FCC does provide a way to turn the loop protection off, but I advise against it. All of the challenges on FCC can be solved in a way that finishes before it times out.

1 Like

@ArielLeslie @camperextraordinaire okay, thank you.