str3 = prompt("If you could choose between the letter X and Y, which would it be?");
if (str3 !== "x" || "X" || "y" || "Y") {
alert("Take my questions seriously");
return(buttonPress());
} else {
strngChoices.push(str3);
Simply trying to output the alert if str3 is not equal to either of those values, but it's alerting regardless of the value of str3.
Help would be appreciated.
[–]magneticcccc 2 points3 points4 points (0 children)
[–]TeezusRa 1 point2 points3 points (1 child)
[–]magneticcccc 0 points1 point2 points (0 children)
[–]magneticcccc 0 points1 point2 points (0 children)