What does it means? can you help me please?

0 голосов
58 просмотров

What does it means? can you help me please?


image

Английский язык (35 баллов) | 58 просмотров
Дан 1 ответ
0 голосов

Because this frequently changes when you change the scope by calling a new function, you can't access the original value by using it. Aliasing it to that allows you still to access the original value of this.

Personally, I dislike the use of that as the alias. It is rarely obvious what it is referring to, especially if the functions are longer than a couple of lines. I always use a more descriptive alias. In my examples above, I'd probably use clickedEl.


(108 баллов)