Operators
Logical not (!)
Converts operand truthiness to its opposite Boolean. Unlike AND and OR, it always produces a Boolean.
Formal Syntax & Structure
javascript syntaxjavascript
!valueParameters & Attributes
| Name | Type | Description |
|---|---|---|
| value | expression | Operand to convert or invert. |
Return Value
Boolean
Converted result.
Working Example
Example Snippetjavascript
console.log(!"");