+ 1

Can someone explain to me how the result is 100 of this assignment Operator?

Please calculate and type the resulting value of the following expression: var result = 20; result *= 5;

2nd Jul 2019, 8:53 AM
Rey Nicole
Rey Nicole - avatar
2 Answers
+ 6
it's same as: result = result *5 result = 20*5 result = 100
2nd Jul 2019, 8:54 AM
voja
voja - avatar
+ 12
result*=5; Is same as result = result * 5; same 20*5 = 100;
2nd Jul 2019, 8:56 AM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar