Smallest Common Multiple - help, I'm stuck!

Yeah. It happened to me here 1 day ago:

I don’t know about the details but I think that this is a common issue in freecodecamp where some codes that requires some loops won’t work. It works in the console but it just doesn’t pass the tests for unknown reasons. Maybe we should report about this issue or something.