var a = 2
var x = 1 + (a*=2)
What will be the value of x variable after executing the code?
I think that it is better to explain like this. var a = 2; var x = 1 + (a=a*2); console.log(x); //the result will be 5 and a*=2 is the same as a=a*2
2017 Apr 30, 7:04:43 PM
Ввійдіть щоб вподобати
Ввійдіть щоб прокоментувати