Can I achieve
if (a == "b" || "c")
instead of
if (a == "b" || a== "c")
?
Well, the closest to that you can get is:
switch (a) {
case "b":
case "c":
// variable a is either "b" or "c"
break;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With