A Thing That I Learned about JavaScript

I follow a lot of people on YouTube now who do videos on dev related things. This video surprised me this week. I didn’t know you can treat functions as objects. This video describes it very well. This is probably well-known to people who know JavaScript well. For a beginner like me, this is brand new.