The Unary plus(+) operation is a single operand operator (which means it worked with only a single operand preceding or succeeding to it), which is used to convert its operand to a number, if it isn’t already a number.
Example 2: The following example demonstrates a unary method with numbers.
100 -100 20
Example 3: The following example demonstrates a unary method with non-numbers.
1 0 0 NaN
My Personal Notes arrow_drop_up
Please Login to comment...