INVOCATION OF FUNCTIONS

INVOCATION OF FUNCTIONS Code within a JavaScript function will be executed when "something" invokes it. The code is not executed when the function is defined but when the function is called. It is common to use the term "calling a function" instead of "calling a function." It is also common to say "call up a function," "start a function," or "execute a function." In this tutorial we will use invoke, because a JavaScript function can be invoked without being called. function myFunction(a, b) { return a * b; } myFunction(10, 2); // Will return 20 The function above does [...]