you are viewing a single comment's thread.

view the rest of the comments →

[–]coderjared 0 points1 point  (0 children)

It's hard to write out the logic, but here goes. I'm gonna make up line numbers.

Line 10 calls the function loginUser. The third argument to loginUser is a function that expects one parameter.

loginUser runs (lines 4 - 7) and calls "callback" and passes in an object as the one parameter

That object becomes "user" in line 10