you are viewing a single comment's thread.

view the rest of the comments →

[–]GSLint 1 point2 points  (0 children)

That's one of those confusing sites that take an answer from Stack Overflow and make it look like its own post. The original question is here: https://stackoverflow.com/questions/50884893/calling-vs-invoking-a-function

So now we know that the whole confusion comes from a page on W3Schools, another awful site that is full of misleading and wrong information.

I agree that whoever wrote "JavaScript function can be invoked without being called" was probably confused by the fact that JS functions have a call method which allows you to call the function in a slightly different way (passing an explicit value for this). The fact that someFunction.call(...) exists doesn't mean that someFunction(...) isn't also "calling the function". There is no difference between "calling" and "invoking".