r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

1

u/muussis May 28 '19

sort() without function expression will sort by string, even if you have an array of numbers