Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
tryptophan
5y ago
0 comments
Share
Arrays start at 0. example_array[5] is actually the 6th number in the array.
undefined | Better HN
0 comments
default
newest
oldest
dagmx
5y ago
Ah yeah that makes sense. I was thinking the `i` check already accounted for the zero indexing.
j
/
k
navigate · click thread line to collapse