I am currently doing a quiz in JavaScript and would like it so that the user could type using lowercase or uppercase but it does not effect the result. I have had a look about but I'm struggling to see anything that could help. (I know to add a question, and of course the correct answer - which I am currently developing). Thank you.
function Quiz()
{
var answer = prompt("question here?","");
if (answer=="your answer here")
{
alert ("Correct!");
}
else
alert ("Incorrect");
}