update snippets 47-62
This commit is contained in:
@ -8,5 +8,8 @@ Otherwise, return the GCD of `y` and the remainder of the division `x/y`.
|
||||
|
||||
```js
|
||||
const gcd = (x, y) => !y ? x : gcd(y, x % y);
|
||||
// gcd (8, 36) -> 4
|
||||
```
|
||||
|
||||
```js
|
||||
gcd (8, 36) -> 4
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user