Lesson 12 JSON & API (fetch data)
เรียนรู้การรับข้อมูลจาก API และใช้งาน JSON ใน JavaScript
📝 โจทย์ 12: ดึงข้อมูล User จาก API
ใช้ fetch() ดึงข้อมูล User
API: https://jsonplaceholder.typicode.com/users
- ใช้ fetch()
- ใช้ response.json()
- ใช้ async / await
- แสดงข้อมูลบนหน้าเว็บ