Good day. I have problem with give different arrays;
my code next:
setInterval(function() {
var TestName = [];
var requests = [];
TestName.push(\'0\');
The reason your array is different each time is that you are running asynchronous requests and then populating from the callback. Each time you do this your requests happen to be finishing in different order and therefore populating the array in a different order.
You must not rely on async request callbacks being called at any particular point within your execution, they can be called at any time, depending on when the response decides to come back.