Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mseepgood
10mo ago
0 comments
Save
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
xg15
10mo ago
Indeed. Or s.length, whatever that represents.
j
/
k
navigate · click thread line to collapse