r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

3

u/iamlage89 May 28 '19

Everything is an object, even functions

1

u/senocular May 28 '19

Kind of, but not really. Primitives aren't objects but do get autoboxed when you try to use them as one. undefined and null are also explicitly not objects nor get boxed.