10
pda87
7y

This happened today... Not my finest hour...

$.ajax({
url: "someurl",
type: "GET",
success: function(data) {
//do something
},
error: function() {
console.log(error);
}
});

...

Browser Exception:
Error: "error" is not defined

FML

Comments
  • 0
    It would still fail because 'someurl' isn't an actual url xD
Add Comment