Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
mseepgood
7mo ago
0 comments
Share
The values for x and y should't come from your brain, though (with the exception of 0). They should come from previous index operations like s.indexOf(...) or s.search(regex), etc.
undefined | Better HN
0 comments
default
newest
oldest
xg15
7mo ago
Indeed. Or s.length, whatever that represents.
j
/
k
navigate · click thread line to collapse