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

1

u/magical_h4x May 28 '19

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

1

u/dwighthouse May 29 '19

I created some code to show how, and explain it:

https://jsfiddle.net/zw2y3o1f/1/