Try like this Que.toLowerCase()
var Que = prompt("What's my name")
if (Que.toLowerCase() === "siaff") {
document.write("Correct!")
}
else {
document.write("Wrong!")
}
7
solved “Idiot Check” in JavaScript (.toLowerCase and .toUpperCase) [duplicate]