I have a simple question that I've been thinking about. Is there a way to accomplish the following:
If i
is not equal to 1, 2, or 3, then alert('yes');
Can we achieve it using the following code:
if (!(i==1&2&3)) { alert('yes')}
Instead of the following longer version:
if (!((i==1) || (i==2) || (i ==3) )) { alert('yes');}