Is +=
the same as =+
?
I can't find any reason for why the plus sign is reversible. For what reasons would I need to use one of the other? Where can i find docs on this i tried searching but didnt see the use of both.
Is +=
the same as =+
?
I can't find any reason for why the plus sign is reversible. For what reasons would I need to use one of the other? Where can i find docs on this i tried searching but didnt see the use of both.
It's not the same.
x+=5
is equivalent to x=x+5
.
x=+5
(or x=(+5)
) is equivalent to x=5
.