From c7a4dae8b8c81a18e930b7a7df70e64879b472c6 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 12 Dec 2017 16:31:39 +0200 Subject: [PATCH] Update divisible-by-number.md --- snippets/divisible-by-number.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/snippets/divisible-by-number.md b/snippets/divisible-by-number.md index 46a5ac938..7f608f12d 100644 --- a/snippets/divisible-by-number.md +++ b/snippets/divisible-by-number.md @@ -1,9 +1,7 @@ ### Divisible by number -Using the module operator `%` we can check if the reminder is equal -to zero. In this case the function returns `true`. We can use this -function for checking if a number is even or odd passing 2 as `divisor` +Use the modulo operator (`%`) to check if the remainder is equal to `0`. ```js -var isDivisible = (dividend, divisor) => dividend % divisor === 0; +const isDivisible = (dividend, divisor) => dividend % divisor === 0; ```