how to change boolean value in 0 and 1 in javascript code example Example: javascript boolean change value var NAME = true NAME = !NAME