PHP:
//asks the user for a code letter then shows the manufacturing grade
var userInput = prompt ("Please enter your code letter here:", "");
if (userInput == "S" || "s")
{
document.write("Your manufacturing grade is Space Grade");
}
else if (userInput == "M" || "m")
{
document.write("Your manufacturing grade is Military Grade");
}
else if (userInput == "C" || "c")
{
document.write("Your manufacturing grade is Commercial Grade");
}
else (userInput == "T" || "t")
{
document.write("Your manufacturing grade is Toy Grade");
}
P.S "The Result I get if I put anything is
Your manufacturing grade is Space GradeYour manufacturing grade is Toy Grade.
I get nothing else... any letter i put or not... to remove the second part of it like not showing hte last part for the letter "T" i just place
else if on it and it works at the end, but again any letter number still gives me the first result only.