Hello, I have the following array
["lucas", "peter", "john"]
I need to send a request with XMLHttpRequest for each name, then save the response in json of the 3 in an object and call another function, the problem is that I do not know how to make the execution wait until all 3 var are fulfilled , and then call function
Hearing that Promises can help me, does anyone have a solution?