This forum is now read-only. Please use our new forums at

How to use APIs with JavaScript Forum

View Course

451 points
Submitted by
about 3 years ago

What in layman terms is the purporse of the 'false' section when making a request

Hi guys,
I just had a general question to ensure I understood the components of the code fully. That is in the code"GET", "", false);

what is the purpose of the 'false'. I tried to find an answer through google with very little success, but from what I understood the false is in order to say he script SHOULDN'T send a request to the server, and continue it's execution without waiting for the reply?

Thanks in advance

1 vote


the third parameter is optional and it says if the connection should be asynchronous or synchronous.
true is asynchronous request, this is default
false is synchronous
there is a lot of explanation for this, e.g.

588 points
Submitted by
almost 3 years ago

0 votes


If you say false, it means that the exercise will wait until it gets a response from the server.

639 points
Submitted by
almost 3 years ago