i try to return an array from a function:
function test (CAR,DATE) {
some XMLHttp Request <- Works
var arrayTrip = JSON.parse(xhrTrip.response); <- Works
console.log(arrayTrip); <- Works
return arrayTrip; <- unsure
}
var test = new myTest(input,time); <- unsure
console.log(test); <- not the array as in console.log(arrayTrip)
But this is not working. Is there any way to receive the array?