How can i get the response value from the http onload function? I know it's something with a Asynchronous call!
httpRequest.onload = function() {
var response = JSON.parse(this.responseText);
test(response);
/*....*/
};
exports.test = function(){
return response;
};
Thanks in advance!