Is there a way to test for occurrence of specific characters in a more elegant way using Javascript syntax but without RegEx? Trying to avoid repetitive 'or' conditions if possible.
if (target == "+" || target == "-" || target == "*" || target == "/") {
alert("hit a function");
}
Thanks.