jQuery function missing parameter
This is the Ajax GET function:
jQuery.get( url, [ data ], [ callback(data, textStatus, XMLHttpRequest) ], [ dataType ] )
However, I see examples of code like this where the first and third parameters are provided but the second is missing:
$.get('ajax/test.html', function(data) {
$('.result').html(data);
alert('Load was performed.');
});
I'm used to providing a '' or NULL value when a parameter is optional, so how does jQuery/javascript handle missing parameters?