To invoke a function that is defined inside another function, create the inner function within the outer function and call it. When you use the function keyword, the function is elevated to the top of the scope and has access to all of the scope's variables. Copied!
The distinction is that the call() method takes different arguments. The apply() method accepts an array of arguments. If you wish to use an array instead of an argument list, the apply() method comes in useful.