check wheather the user can vote or not by checking the age.
use clear button to reset the input
//function to reset the entered values
clearBtn.addEventListener("click", function () {
userInput.value = "";
printResult(" ");
});
- Change the color for the result using javascript'
resultDiv.style.color = "grey";