ทำไมใช้ async await ใน forEach แล้วไม่ await?
เชื่อว่าทุกคนเคยใช้ async await ใน forEach บ้างแหละ จะไม่มีผลกระทบไรเลย หากผลลัพธ์ที่เราต้องการ ไม่สนใจลำดับขั้นตอนในการแสดงผล
แต่ถ้าเราต้องการแสดงผลที่เป็นลำดับขั้นตอน ลองมาดูโค้ดกับผลลัพธ์ข้างล่างนี้ก่อนครับ ว่าใช้ async…