📜  一元运算符 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:16.028000             🧑  作者: Mango

代码示例1
+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