I have this call :
// some code;
myAjaxCall(
function abcd() {};
);
// more code
Can the more code and abcd executing in the same thread or different thread. I know it is asynchronous.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming
myAjaxCallis an ajax wrapper, and the first argument is the complete callback, the answer is “more code” will run before abcd function. But I’d need to see myAjaxCall function to know what is really going on.Remember, the complete callback happens when ajax retruns. “more code” executes in the normal execution path.