From 548bba6543d96bd2acfecc7c7a264eebc4ce4642 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 12 Dec 2017 16:32:24 +0200 Subject: [PATCH] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f47dbd93a..278662766 100644 --- a/README.md +++ b/README.md @@ -128,12 +128,10 @@ const distance = (x0, y0, x1, y1) => Math.hypot(x1 - x0, y1 - y0); ### 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; ``` ### Escape regular expression