(async function run() {
var results = [];
await urls.forEach(async (url)=> {
results.push( await getData(url));
});
console.log( await results);
})();
(async function run() {
var results = [];
for (const url of urls) {
results.push(await getData(url));
}
console.log(results);
})();