2
I have the following method:
    this.retorno.then(function(result){
        let a = result[0].infos.inProgress; 
        var cards = [];
        a.forEach(b => { 
            let card = new Card(b.name, b.type, b.date, b.id);
            cards.push(card);
        });
        let divOpen = document.querySelector("#open");
        let cardView = new CardView(divOpen);
        cardView.load(cards);
    });
It itself is working perfectly, but I would like to use the variable cards that contains an array of objects in another method of the same class. How can I do that?
It’s not just about sticking to it
thisas he did withthis.resultado?– Woss
Livia, there’s no need to say it’s a beginning question, it’s irrelevant to doubt.
– user28595