forEach expects a synchronous function!forEach does not wait for promises !Additional readingArray.prototype.forEach()for statementfor...of statement