Swap values of two integers a = 5 and b = 10 using arithmetic and print the result.
Ready — edit the code above and click Run.
console.log("See solution in explanation");
Try solving on your own first, then reveal the official answer.
Add/subtract trick: after a=a+b, subtracting b from new a yields original a.