let linkService = new LinkService(); linkService.getLinks(); let api = new ApiService() let res = api.get(2) async function showGets(id) { console.group("main.js") let api = new ApiService() let res = await api.get(id); let array =[] for (let i = 0; ii < 5; ii++) { array.push(res.articles[i]); } console.log(res.articles[0]) console.groupEnd("main.js") return array; }