Help! How do I make something like | (p<=5, p>=3) | work?
Okay, so I'm trying to make a Trivia game and in this game, you earn a point when you get a question right, and you lose a point if you get a question wrong. In the end, I'm trying to make different outcomes, depending on how many points you have. So below, I have it so if you have points less than or equal to 2, it prints (You did absolutely terrible. You scored " + p + " points), and if you have greater than 5 points it prints (You did very well. You scored " + p + " points!) I want to make it so that if you have points through 5-3(at the very bottom) it will print (You did kind of okay. You scored " + p + " points). But it is not working, so how can I do this? if (p<=2) { alert("You did absolutely terrible. You scored " + p + " points."); } if (p>5) { alert("You did very well. You scored " + p + " points!"); } if (p<=5, p>=3) { <================== alert("You did kind of okay. You scored " + p + " points."); } }