This is valid in php:
$x=$y=\'value\';
This will in esscence set both $x and $y to \'value\'.
Is this valid in javascript?
To prevent the y from becoming a global variable, use the following:
var x, y = x = 'value';
Apparently the declarations are simply evaluated from left to right.