Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mseepgood
· 1y ago · 0 comments
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.
Comments
[–]
xg15
1y ago
Indeed. Or s.length, whatever that represents.