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)
@BuminKaganHan3 жыл бұрын
Is there any difference between fetch and XHR on programmatic logic??
@procademy3 жыл бұрын
Yes...and I will cover fetch API in the coming lectures.
@suneelyekasiri7 ай бұрын
sir give us the source code for the js course@@procademy
@Martin958 Жыл бұрын
What causes the order of the called 'getCountry' functions to change each time?
@procademy Жыл бұрын
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.
@Martin958 Жыл бұрын
@@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?