1 Matching Annotations
- Aug 2022
-
www.tektutorialshub.com www.tektutorialshub.com
-
The unary plus operator (+) precedes its operand and converts it into a number. If it fails to convert the operand into a number, then it returns NaN. The unary (-) operator converts the operand into a number and negates it.
an alternative to !!, in order to convert null, empty strings, boolean values into 0 or 1.
-