When we have a predefined JS function:
function myFunction() { script }
Why when we call it during an event (for e.g onclick) from HTML, we use the parameter parentheses:
<button onclick="myFunction()">Sumbit</button>
while when we call it from JS, we use the function name without parentheses?:
document.getElementById("button").onclick = myFunction;