i am now learning javascript and found some problems with this code
var response = '{"status":{"message":{"-1":[111]}}}';
response = jQuery.parseJSON(response);
if ( typeof (response.status.warning[-1]) == "undefined" ) {
console.log(true);
};
why he throws a error, instead of just ignoring "console.log" part?

response.status.warningtoresponse.status.message