Answers for "unary operator javascript"

5

unary operator javascript

+a // Converts to number
-a // Converts to number and negates
++a // Adds 1 to a and returns new a
a++ // Adds 1 to a and returns original a
--a // Subtracts 1 from a and returns new a
a-- // Subtracts 1 from a and returns original a
Posted by: Guest on March-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language