This is the second one's code.
var x = new XMLHttpRequest()
var data
x.onload = function () {
data = this.responseText
let jsonData = JSON.parse(data)
data = jsonDat
}
xhttp.open("GET", "https://*************************************")
xhttp.send()
for (var i = 0; i > data.length; i++) {
a = data[i]
if (a.****** == ******) {
********** = a.******
}
}
News flash: IM AN IDIOT
Note how the second one declares the variable X, but not XHTTP
Im tryna open and send the first one from the second one.
Lel.
I dont understand how none of you caught that...
I guess I didnt either so...