I'm new to javascript and I'd just like a simple explanation of how to use "if" with multiple conditions in javascript.
I've seen stuff like this: if (condition1 && condition2) and if (condition1) || (condition2)
To my understanding, && is basically "and", and || is basically "or". Please correct me if I'm wrong.
But would you use these if you wanted to test more than 2 conditions? And are there any other marks besides && and || ? Also, if you were to have a much larger list of conditions. Let's say 10 or 20, then is there a better/proper way to test them other than sticking them all in if() seperated by && and || ?