[JS] JavaScript Functions: myFunc vs myFunc() Explained Simply
What you can expect from this post?
When I was learning JavaScript, one thing kept confusing me:
We often need to pass a function into another function — like setTimeout or addEventListener — but sometimes we add parentheses () after the function name, and sometimes we don’t. How do we know when