game anak sd
0 let score = 0; let correctAnswer = 0; function generateQuestion() { document.getElementById("feedback").innerText = ""; // Pilih angka acak 1-10 const num1 = Math.floor(Math.random() * 10) + 1; const num2 = Math.floor(Math.random() * 10) + 1; // Pilih operasi: + atau - const isAddition = Math.random() > 0.5; if (isAddition) { correctAnswer = num1 + num2; document.getElementById("question").innerText = `${num1} + ${num2}`; } else { // Memastikan hasil pengurangan tidak negatif untuk anak SD const max = Math.max(num1, num2); const min = Math.min(num1, num2); correctAnswer = max - min; docum
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in