Y
Hacker News
new
|
ask
|
show
|
jobs
by
ulisesrmzroche
4209 days ago
What? No, it's not an anti-pattern. It's about understanding functional scoping, JavaScript doesn't use lexical scoping.
1 comments
vog
4209 days ago
Not sure where you got this from. JavaScript does use lexical scoping for almost everything, except for "this".
link
ulisesrmzroche
4208 days ago
Yeah, that's what I meant, but it was before caffeine this morning and now its too late to edit.
link