Vlad Legkowski9,882 Points
Response as parameter in the last function?
Why do we need a parameter 'response' in the last function? So it will stare data as JSON?
Craig Campbell14,428 Points
the callback takes the response object as input. It's just the syntax they chose to use for AJAX with jQuery . The response object is what the server sends back in the response part of the request-response cycle. you need to take this as input into the function so your machine can access the object and extract data out of it.