Hacker News new | ask | show | jobs
by yxhuvud 5286 days ago
Yes, create the variable as a function argument.
1 comments

While that does allow you to use a locally scoped variable (even one that shadows an outer variable), it's still not explicit scoping.