Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
queenkjuul
· 1y ago · 0 comments
Can't you `function.bind(context, ...)` or am i misunderstanding
Comments
[–]
wruza
1y ago
Bind substitutes `this`, not global scope. With function envs you can write functions like function () {a += 1} and have it increment `a` in some object.