I have seen this being used through multiple languages so it seems to be just a coding question in general. On an answer here at stackoverflow, it seems as though he used a variable as a parameter, but e has not been defined before this function.
$(document).keypress(function(e) {
if(e.which == 13) {
alert('You pressed enter!');
}
});
What is happening with "e" in situations like this?