I have a variable on javascrit, initialized at 0. What I'd like to do is this :
- if the value is 0, change it to 1;
- if the value is 1, change it to 0;
and I'll avoid conditional statement (like if/else) to check what the value is.
I think I just do it with some matematic operation; I thought to a NOT operation, but I don't know how to do that operation without