change boolean on click js code example Example: javascript boolean change value var NAME = true NAME = !NAME