Rachel
0
Q:

javascript gcd

const gcd = (a, b) => b === 0 ? a : gcd(b, a % b);

// Example
gcd(10, 15);    // 5
5

New to Communities?

Join the community