Skip to content

Commit 0cd558a

Browse files
committed
Merge branch 'master' of github.com:HowProgrammingWorks/Function
2 parents 050576f + e547e52 commit 0cd558a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Exercises/3-ip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const ipToInt = (ip = '127.0.0.1') => {
44
// Parse ip address as string, for example '10.0.0.1'
55
// to ['10', '0', '0', '1'] to [10, 0, 0, 1]
6-
// and convert to Number value 167772161 with sitwise shift
6+
// and convert to Number value 167772161 with bitwise shift
77
// (10 << 8 << 8 << 8) + (0 << 8 << 8) + (0 << 8) + 1 === 167772161
88
// Use Array.prototype.reduce of for loop
99
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy