r/learnjavascript • • Oct 23 '26

Block Scope

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

13 Upvotes

8 comments sorted by

View all comments

Show parent comment

2

u/JGhostThing 29d ago

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