let currentId = 100; // 시작 문제 번호 (샘플 JSON이 100번부터라고 가정) async function loadQuestion(id) { const res = await fetch(`/question/${id}`); const q = await res.json(); if (q.error) { document.getElementById("question-area").innerHTML = `
문제를 찾을 수 없습니다.
`; return; } currentId = q.id; let html = `