I'm very new to javascript and I'm working with the jeopardy api to to get jeopardy questions right now this is what i have
var request = new XMLHttpRequest();
request.open('GET', 'http://jservice.io/api/categories?count=6', true)
var arr = []
var clues = []
request.onload = function() {
    var data = JSON.parse(this.response)
    data.forEach(cat => {
        console.log(cat)
        arr.push(cat.id)
    })
    for (var i = 0; i < 6; i++) {
        var base = "http://jservice.io/api/category?id="
        var clueRequest = base.concat(arr[i])
        console.log(clues.push(clueRequest)) 
    }  
    
}
request.send()The thing is that I want to now go into my clues list and do requests for those jsons because they hold the questions. How do I do this?
 
     
    