Is there a better way of writing v = (v == 0 ? 1 : 0); [closed] Is there a better way of writing v = (v == 0 ? 1 : 0); [closed] javascript javascript