In the javascript course I am learning I am using a node module called passport, to authenticate a user it has some code like this
passport.authenticate("local")(req, res, function()
Now I get normally you could nest functions within the parameters of other functions for call backs, and also keep calling methods on functions but shouldn't the method of this function only take "local" varriable, whats happening here? Would rewritting it as
passport.authenticate("local", req, res, function(){})
achieve the same thing?
Thanks in advance for any help :D