JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/ui-lightness/jquery-ui.css">

JavaScript

var a = "a",
    b = "b";

// swap a and b
a = [b][b = a,0];

alert('Now a has the value : ' + a);
alert('Now b has the value : ' + b);