4 7 2 compound assignment operators c2 b6

Solutions on MaxInterview for 4 7 2 compound assignment operators c2 b6 by the best coders in the world

showing results for - "4 7 2 compound assignment operators c2 b6"
Lynsey
08 Jul 2020
1/*A common programming task is to update the value of a variable in
2reference to itself.*/
3
4let x = 1;
5x = x + 1;
6
7console.log(x);
8
9//2
Yannic
04 Jun 2018
1/*This action is so common, in fact, that it has a shorthand operator,
2+=. The following example has the same behavior as the one above.*/
3
4let x = 1;
5x += 1;
6
7console.log(x);
8
9//2