The last of the six instructions in the challenge “Smallest Common Multiple”.
smallestCommons([1, 5]) should return a number.
smallestCommons([1, 5]) should return 60.
smallestCommons([5, 1]) should return 60.
smallestCommons([2, 10]) should return 2520.
smallestCommons([1, 13]) should return 360360.
smallestCommons([23, 18]) should return 6056820.
Edit: Though now the console.log is giving me a different number. Does this have anything to do with the warning message of a possible infinite loop in my While block?
I think I am not understanding the problem. I just tested your code and it passed with flying colors. Your code also returns 6056820 for the range [23, 18]. So I’m not sure where you are getting the number 910308.