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 };