[a,b] = [b,a]
How does the above code swap a and b ?
I could see that the Right hand side of the expression crates an array, but I could not understand how it can be assigned to the left hand side.
Please see this fiddle http://jsfiddle.net/sethunath/MqWKH/
Update : Works only in firefox !