change text to boolean javascript code example Example: javascript boolean change value var NAME = true NAME = !NAME