Functions for GCD, LCM and LCD.
Math.gcd(...nums)- returns greatest common divisor/factor of given numbersMath.lcm(...nums)- returns least/lowest common multiple of given numbersMath.lcd(...nums)- returns lowest/least common denominator of given numbers
Math.gcd(48,18,30)
// 6
Math.lcm(4,6,8)
// 24
Math.lcd(3,4,6)
// 12