r/learnjavascript • • Oct 23 '26

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 Oct 26 '26

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 28d ago

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