r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

4

u/dwighthouse May 28 '19

Named function objects can both be referenced by the contents of the function and have property values attached, allowing for the generation of function instances that have unique data associated with them, like a closure might, but without an actual closure.

1

u/magical_h4x May 28 '19

How do you reference a function object by the contents of that function?

→ More replies (1)