I'm working on trying to get different functions to run if a certain button in the HTML is clicked. When I open the site, it runs and there are no errors in the console, but nothing happens when I click one of the four buttons. Here is what I have right now:
document.getElementById("answer-2").addEventListener("click", answers());
function answers() {
if (document.getElementById("answer-2").clicked == true) {
showQuestions2();
} else if (document.getElementById("answer-2").clicked == false) {
timerPenalty();
} else if (seconds <= 0) {
endGame();
}
}