3 ms·
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.
by deniz-a 5y 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.