0

I want to know your opinion about using "+=".

I mean, instead of just retyping it over again.

5th Nov 2016, 12:33 AM
Wesley Siqueira
Wesley Siqueira - avatar
4 Respuestas
+ 1
i always get confused when I first see it n quizzes, challenges, etc, but that's probably because I'm still learning and will get used to it. I think it is very useful though!
5th Nov 2016, 1:39 AM
Hannah T
Hannah T - avatar
+ 1
you may think of it as first "add" and then "assign" because + is present before =. this is just for remembering. Obviously its easier to write.
5th Nov 2016, 2:07 AM
kamal joshi
kamal joshi - avatar
0
its eaiser and faster.
5th Nov 2016, 1:45 AM
Ziyaan Hassan
Ziyaan Hassan - avatar
0
I use += yet its easier to explain to people what var = var + 1 does.
5th Nov 2016, 3:23 AM
-- -- --