I am currently working on a sonic themed trivia quiz, everything is currently going swimmingly except for one thing…I can’t figure out how to make a score counter, and I can’t seem to find a tut on how to make one, I would rly appreciate it if someone could shed some light on my situation…plz?
here is my code curently:
document.querySelector(".wrong-answer").addEventListener('click', incorrect)
document.querySelector(".wrong-answer-two").addEventListener('click', incorrect)
document.querySelector(".right-answer").addEventListener('click', correct)
document.querySelector(".wrong-answer-three").addEventListener('click', incorrect)
function incorrect() {
alert('WRONG ANSWER')
}
function correct() {
alert('GREAT JOB!')
}