fix naming
This commit is contained in:
8
snippets/is-divisible.md
Normal file
8
snippets/is-divisible.md
Normal file
@ -0,0 +1,8 @@
|
||||
### Divisible by number
|
||||
|
||||
Use the modulo operator (`%`) to check if the remainder is equal to `0`.
|
||||
|
||||
```js
|
||||
const isDivisible = (dividend, divisor) => dividend % divisor === 0;
|
||||
// isDivisible(6,3) -> true
|
||||
```
|
||||
Reference in New Issue
Block a user