I am trying to get the data variable out of if-else statement in the global scope how can I do it?
let request = new XMLHttpRequest(); request.open(\'GET\', \