x+=y+=z in Javascript
<p>I know in javascript</p>

<p><code>x = y = z</code> means <code>x = z</code> and <code>y = z</code></p>

<p><code>x+=z</code> means <code>x=x+z</code>;</p>

<p>So if I want <code>x=x+z</code> and <code>y=y+z</code>, I tried <code>x+=y+=z</code> not working</p>

<p>anyone have a better idea to write short code instead <code>x+=z;y+=z</code></p>

<p><strong>EDIT</strong></p>

<p>First thanks for everyone involved in my question.
Here I wanna explain something why I have this question in first place.</p>

<p>I tried to write some code like <code>x+='some html code'</code>, and I need to <code>y+='the same html code'</code>. So naturally I do not want to create another <code>var z='the html code</code> first then do <code>x+=z</code> and <code>y+=z</code></p>

<p>Hope my explain make sense. Anyway, I am going to close this question now. Thanks again.</p>
