Swap the values of two given variables.


Very easy


Swapping the values of two variables is a routine activity in many computer algorithms, especially the ones that perform sorting of arrays.

For instance, if a = 10 and b = 20, then after swapping these two variables with one another, we'd get a = 20 and b = 10.

In this exercise, you ought to swap the values of the variables a and b with one another.

Here's the code to get you started:

var a = 10;
var b = 20;