How can I flip the value of a boolean variable in javascript, without having to include the variable name twice? So
foobarthings[foothing][barthing] = !foobarthi
var value = true; alert(value); value ^= true; alert(value);
You could get 1 or 0 here