I repent for using 0-based Arrays, I was wrong. Let me share with you why. Programmers , instead of offset notation. Offset notation is the common practice of describing the position of an element in an array by its corresponding location in the physically allocated space of contiguous memory, which logically starts at a zeroth initial. This is otherwise shortened to “0 based index arrays”, despite the misnomer of it actually being an offset. We should instead use 1 as the beginning of an Array, because it offers the following advantages: ought to use index notation Naturally, the first element in a list cardinally corresponds to . Contrarily, even official documentation of JavaScript has explicit disclaimers that the "first element of an array is actually at index 0" - this is easily forgotten, especially by novices, and can lead to errors. 1 Mathematically, a closed interval is properly represented in code as , because it includes its endpoints. Offset notation instead is technically a left-closed right-open interval set, represented in code as . This matters because code deals with integer intervals, because all elements have a fixed size - you can not access a fractional part of an element. Integer intervals are closed intervals, thus conclusively proving this importance. for(i = 1; i <= items.length; i++) for(i = 0; i < items.length; i++) Mathematically, matrix notation also starts with . 1 What should the th item represent then? How about the Array itself? Especially for languages that treat as a falsey value, if gives you true, it isn’t unreasonable to think that gives you the root of foo, which is the Array itself. 0 0 0 || true foo[0] The last element in a list cardinally corresponds to the length of the list, thus allowing easy access with rather than having frustrating arithmetic everywhere in your code. items.length (items.length - 1) Negative indices are symmetric with positive indices. Such that and respectively refer to the last and first element, and in the case where there is only one item in the list, it matches the same element. This convenience allows for simple left and right access that offset notation does not provide. -1 1 Non existence of an element can be represented by , which would conveniently code elegantly as . Rather, one must decide upon whether is philosophically more meaningful than with offset notation despite ignoring the asymmetry of the equation. 0 if( !items.indexOf('z') ) return; if( items.indexOf('z') == -1 ) return; if( items.indexOf('z') < 0 ) return; Therefore, I ask forgiveness for all the years of 0-based Arrays I have naively, foolishly, and mistakenly pushed on everyone. Please forgive me, repent with me, and now rise up and rebel! Share, tweet, HN/Reddit, etc. the movement, and let’s ! No, I’m not trolling, . Make Arrays Great Again the math has spoken