SyntaxFix
Write A Post
Hire A Developer
Questions
Use a third variable like this:
var a = 1, b = 2, c = a; a = b; // must be first or a and b end up being both 1 b = c;
DEMO - Using a third variable