How to convert a string type into a number type using Unary Operators
A unary operator is an operation with only one operand.
As an arithmetic addition operator: It takes numerical values (literals or variables) as their operands and return a single numerical value.
Both + and — operators have unary versions, where they operate only on one variable.
When used in this fashion, + returns the number representation of the object, while — returns its negative counterpart
The unary plus operator converts its operand to Number type.
The unary negation operator converts its operand to Number type and then negates it.