Defining parameters vs defining variables in function

image

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 “tf.target” working while “targetArrowFunction.target” not workin.

:broken_heart:

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.