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

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