Operators

Unary plus (+)

Try the free JavaScript compiler

Converts an operand to Number. BigInt and Symbol conversion through unary plus throws TypeError.

Formal Syntax & Structure

javascript syntaxjavascript
+value

Parameters & Attributes

NameTypeDescription
valueexpressionOperand to convert or invert.

Return Value

Number

Converted result.

Working Example

Example Snippetjavascript
console.log(+"7");
JavaScript Reference