title: Is setting multiple variables in 1 line valid in javascript? (var x=y='value';)
body: <p>This is valid in php:</p>
  
  <pre><code>$x=$y='value';
  </code></pre>
  
  <p>This will in esscence set both $x and $y to 'value'.</p>
  
  <p>Is this valid in javascript?</p>
  
  <pre><code>var x=y='value';
  </code></pre>
  
  <p>I have tested it in chrome console and it worked as expected, but just wanted to double check before starting to use it.</p>