From 44d6a7fd1f9a67e79b05529860b9db0ab2a74136 Mon Sep 17 00:00:00 2001 From: Mikhail Alyoshyn <44239053+ArMANIAK@users.noreply.github.com> Date: Mon, 21 Oct 2019 23:48:06 +0300 Subject: [PATCH] Update 3-ip.js Misprint --- Exercises/3-ip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exercises/3-ip.js b/Exercises/3-ip.js index 5b448dd..1e2c406 100644 --- a/Exercises/3-ip.js +++ b/Exercises/3-ip.js @@ -3,7 +3,7 @@ const ipToInt = (ip = '127.0.0.1') => { // Parse ip address as string, for example '10.0.0.1' // to ['10', '0', '0', '1'] to [10, 0, 0, 1] - // and convert to Number value 167772161 with sitwise shift + // and convert to Number value 167772161 with bitwise shift // (10 << 8 << 8 << 8) + (0 << 8 << 8) + (0 << 8) + 1 === 167772161 // Use Array.prototype.reduce of for loop };