var x=10;
var y=5;
Solution 1
x= x + y 
y= x - y 
x= x - y 
Solution 2
x=y+x,y=x-y,x=x-y;
the two solutions are equal to each other but the second one is faster, why?
Can anyone show me the optimized opcode generated for both solutions by JS engine?
 
     
     
    