If you don't get it, it's funny because JS arrays begin at 0.
any language's arrays begin at 1?
Lua.
aha, that is really fun
Lua
Lua "arrays"* begin at 1
* Lua doesn't really have "arrays", but sequences are functionally the same thing, and those start at 1
smalltak
sounds like small talk.
Pascal's did as I recall, but it's been over 40 years now.
Uhm, no, JS arrays start at "0", actually.
"0"
There's your daily cursed JS fact, enjoy.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you don't get it, it's funny because JS arrays begin at 0.
any language's arrays begin at 1?
Lua.
aha, that is really fun
Lua
Lua "arrays"* begin at 1
* Lua doesn't really have "arrays", but sequences are functionally the same thing, and those start at 1
smalltak
sounds like small talk.
Pascal's did as I recall, but it's been over 40 years now.
Uhm, no, JS arrays start at
"0", actually.There's your daily cursed JS fact, enjoy.