Lets take a look at this code:
var mainFunction = function() { altFunction.apply(null, arguments); }
The arguments that are passed to \"mainF
In this case it could be more comfortable to use call() instead of apply():
call()
apply()
function first(parameter1, parameter2) { var parameter3 = "123"; secondFunction.call( this, parameter1, parameter2, parameter3); },