I'm on my way to learning more about javascript and it could get really confusing at most times.
So we have this in jQuery:
$.getJSON('getDate.php', function(response, status, xhr) { ... });
And this:
$('a').click(function(event) { ... });
Based on the code above and in terms of javascript definitions, please consider these arguments(response, status, xhr & event) and the questions about them as listed below:
- What are they exactly?
- Where do they come from?
- When do you actually use them?
- What's the proper way of using them?
I'm a newbie programmer and I'm not sure if I asked the right questions.
Thanks.