英文線上測驗 Interactive English Lesson <!-- body { font-family: Arial, sans-serif; text-align: center; margin: 50px; } .question { font-size: 20px; margin-bottom: 20px; } .answer { margin-top: 10px; } .correct { color: green; } .incorrect { color: red; } --> Learn English with Interactive Questions! Test your knowledge by answering the questions below. Submit // <![CDATA[ const questions = [ { question: "What is the past tense of 'go'?", answer: "went" }, { question: "What is the plural of 'child'?", answer: "children" }, { question: "What is the synonym of 'happy'?", answer: "joyful" }, { question: "What is the antonym of 'big'?", answer: "small" }, { question: "What is the past tense of 'eat'?", answer: "ate" }, { question: "What is the capital of France?", answer: "paris" }, { question: "What is the comparative form of 'good'?", answer: "better" }, { question: "What is the past tense of 'run'?", answer: "ran" }, { question: "What is the superlative form of 'fast'?", answer: "fastest" }, { question: "What is the synonym of 'angry'?", answer: "furious" }, { question: "What is the antonym of 'dark'?", answer: "light" }, { question: "What is the past tense of 'write'?", answer: "wrote" }, { question: "What is the plural of 'mouse'?", answer: "mice" }, { question: "What is the opposite of 'hot'?", answer: "cold" }, { question: "What is the past participle of 'see'?", answer: "seen" }, { question: "What is the synonym of 'intelligent'?", answer: "smart" }, { question: "What is the past tense of 'take'?", answer: "took" }, { question: "What is the plural of 'foot'?", answer: "feet" }, { question: "What is the antonym of 'slow'?", answer: "fast" }, { question: "What is the past tense of 'give'?", answer: "gave" } ]; let currentQuestionIndex = 0; function loadQuestion() { document.getElementById("questionText").textContent = questions[currentQuestionIndex].question; } function checkAnswer() { let answer = document.getElementById("userAnswer").value.toLowerCase(); let feedback = document.getElementById("feedback"); if (answer === questions[currentQuestionIndex].answer) { feedback.textContent = "Correct!"; feedback.className = "answer correct"; } else { feedback.textContent = "Incorrect. Try again!"; feedback.className = "answer incorrect"; } currentQuestionIndex = (currentQuestionIndex + 1) % questions.length; setTimeout(() => { document.getElementById("userAnswer").value = ""; feedback.textContent = ""; loadQuestion(); }, 2000); } loadQuestion(); // ]]>