Operators
Unary plus (+)
Converts an operand to Number. BigInt and Symbol conversion through unary plus throws TypeError.
Formal Syntax & Structure
javascript syntaxjavascript
+valueParameters & Attributes
| Name | Type | Description |
|---|---|---|
| value | expression | Operand to convert or invert. |
Return Value
Number
Converted result.
Working Example
Example Snippetjavascript
console.log(+"7");