When to add parentheses to a function in Javascript?
Have you ever seen a code base with a function being called without parentheses "()"? This is acceptable by any Javascript engine.
Check the following two click event on a button:
document.querySelector('button').addEventListener('click', promptAlert...
plasebo.hashnode.dev1 min read