Javascript
Prefix
Suffix
Prefix and Suffix
Increment and Decrement Counter
RJM Programming - October, 2021
Javascript Prefix Increment and Decrement Counter
Increment
Decrement
Start with
var onev=
null
;
Start with
var one_v=
null
;
Before
After
Before
After
null
null
null
null
+
++
+(++onev)
+(+(++onev))
+(-(++onev))
-(+(--onev))
-
--
-(--one_v)
-(-(--one_v))
-(+(--one_v))
+(-(++one_v))