()at the end tell the interpreter that you want to call - as a function - whatever is stored at the variable
myFunction. If you were to place a space between the two parts like
myFunction ();you will get an error, as this is a syntax violation.
data-makes it considered a valid data attribute, and can be used to store information on HTML elements.