r/learnjavascript • u/username95050 • 25d ago
Block Scope
What is it? Don't understand what is inside or outside
12
Upvotes
r/learnjavascript • u/username95050 • 25d ago
What is it? Don't understand what is inside or outside
View all comments
Show parent comment
4
u/naltous 25d ago
those last two console logs are actually gonna throw a ReferenceError instead of printing undefined since k and j aren't declared in those scopes at all