Defining parameters vs defining variables in function


When defining targetArrowFunction with parameter “tf”, nothing happens but works when defining the variable “targetArrowFunction” it works.

and the roles are different with “target” property in “” working while “” not workin.


What’s the difference?

What’s the definition of targetArrowFunction? It looks like it’s an element.

tf is an object based on the Event class. targetArrowFunction is whatever it was defined as.