The logical NOT ( ! ) operator (logical complement, negation) takes truth to falsity and vice versa. It is typically used with Boolean (logical) values. When used with non-Boolean values, it returns false if its single operand can be converted to true ; otherwise, returns true .
The ! operator reverses the logical (true or false) state of the value. In this case it is the truthy or falsey value.
Is not a data type?
Arr is not a data type. Step-by-step explanation: In computer science, the Boolean data type is a data type that has one of two possible values -usually denoted true and false. Character is a data type for storing/ assigning alphabets and other symbols.