function lcm(a, b) { let theLCM = 0; let remainderA; let remainderB; do { theLCM++; remainderA = theLCM % a; remainderB = theLCM % b; } while (remainderA !== 0 || remainderB !== 0) return theLCM; }
function lcm(a, b) { let theLCM = 0; let remainderA; let remainderB; do { theLCM++; remainderA = theLCM % a; remainderB = theLCM % b; } while (remainderA !== 0 || remainderB !== 0) return theLCM; }