Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const gcd = (a, b) =>
- b === 0
- ? a
- : gcd(b, (a % b));
- console.log(gcd(206, 40));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement