Making Multiple Simultaneous Requests with AJAX in JavaScript

We can close the if statement, and add code to handle anything other than a HTTP 200 response:
} else { alert(ajaxArray[index].status); }
There is one important thing left to do in this function before we're all done with it, and that is free the AJAX object so it can be reused for subsequent requests:
ajaxArray[index] = null; } } }
1 2 3