The React Show cover image

What Actually Happens When You Call A Function?

The React Show

00:00

How JavaScript Works

We define a unique function that takes one argument named X, and then we immediately call that function with the value of 10. We don't need to do anything special. It will all just work. And actually, this works with var as well, except var is a little bit weird. If you're curious, you can look up how var works to understand it more fully. Ah, wow, Thomas. You've explained a lot of how JavaScript works. Like I assume globally available functions are just defined by default in the frame at the end of the environment list too? Yeah, exactly right, Sally.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app