js-quiz.json

636 B
22/10/2025 09:36
JSON
js-quiz.json
[
  {
    "id": "js-1",
    "question": "คำสั่งใดใช้เพื่อพิมพ์ข้อความไปยังคอนโซลใน JavaScript?",
    "options": ["print()", "console.log()", "echo()", "System.out.println()"],
    "answer": 1
  },
  {
    "id": "js-2",
    "question": "ตัวแปรที่ประกาศด้วย const สามารถรีค่าได้หรือไม่?",
    "options": ["ได้", "ไม่ได้", "ขึ้นกับเบราว์เซอร์", "เฉพาะเมื่อใช้ strict mode"],
    "answer": 1
  }
]