hello, thank you for your efforts, I have one question, if you used sysnc instead of Async, is the response coming in order? because sync it's blocking reverse the Async it's not blocking it runs all requests at the same time(multi tasking)
since each country data will be requested separately, which country data will come first in the response, that is not in our control. Whichever endpoint sends the response first, that will be received first on the client.
@@procademy Why are the endpoints data sent in a different response order each time by the server? Also, since they are called in a definite order with a small time lapse between each call, why should it happen this way from a server perspective?
Thank you, your explanation is awesome
hello, thank you for your efforts, I have one question, if you used sysnc instead of Async, is the response coming in order? because sync it's blocking reverse the Async it's not blocking it runs all requests at the same time(multi tasking)
Thanks a lot for this explanation sir but please share the HTML and CSS code used in this program.
Is there any difference between fetch and XHR on programmatic logic??
Yes...and I will cover fetch API in the coming lectures.
sir give us the source code for the js course@@procademy
What causes the order of the called 'getCountry' functions to change each time?
since each country data will be requested separately, which country data will come first in the response, that is not in our control. Whichever endpoint sends the response first, that will be received first on the client.
@@procademy Why are the endpoints data sent in a different response order each time by the server? Also, since they are called in a definite order with a small time lapse between each call, why should it happen this way from a server perspective?
u havent shared the file sir
u havent sharent the file sir