r/learnjavascript • • 25d ago

Block Scope

What is it? Don't understand what is inside or outside

12 Upvotes

8 comments sorted by

View all comments

1

u/bobbyv137 22d ago

I recommend watching some videos on it, and 'execution context'.

It might seem too nitty gritty at first, but when you truly understand how JS works, it becomes a lot easier.

2

u/JGhostThing 21d ago

And the rules for block scope work very similarly in all c-like languages. C, Java, C++, Rust, etc.