This is valid in php:
$x=$y='value';
This will in esscence set both $x and $y to 'value'.
Is this valid in javascript?
var x=y='value';
I have tested it in chrome console and it worked as expected, but just wanted to double check before starting to use it.