DEV Community

Discussion on: The difference between x++ and ++x

Collapse
 
l7ucian profile image
Andercou Lucian

I think the shortening can be done with postfix incrementation two, and as long as you adapt the initial value of the counter, it yields the same output.