const Output = [];
for await (const item of List) {
let result = await someAsyncFunction(item);
Output.push(result);
};
res.status(200).json(Output); // response is sent after the loop is finished
const j = 10;
for (let i = 0; i < j; i++) {
asynchronousProcess(function() {
console.log(i);
});
}