I look at another user's code and try to understand it. They have a function call name surrounded in parentheses:
myButton.onclick = (myFunction)(a, b, c);
Isn't it like that:
myButton.onclick = myFunction(a, b, c);
edit:
To add more context, the myFunction function looks like this:
myFunction = function(a, b, c) { return function () {
source share