Y
Hacker News
new
|
ask
|
show
|
jobs
by
deniz-a
1884 days ago
Arrow functions have the same `this` as the scope where they are declared (in this case, an onclick attribute). Both would work in this case.