r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

Show parent comments

5

u/amdc !CURSED! May 28 '19

that's pretty much everywhere

0

u/[deleted] May 28 '19

[deleted]

0

u/[deleted] May 28 '19

[deleted]

2

u/TheIncorrigible1 May 28 '19

I think the difference here is, a day doesn't represent an underlying structure. Both the day of the week and month of the year can be represented as enums and are both zero-based which supports this mentality.

→ More replies (2)