title: Javascript Increment y=++x
body: <p>I am having a problem getting the following code to work.</p>
  
  <pre><code>&lt;p&gt;&lt;b&gt;y=++x&lt;/b&gt;&lt;/p&gt;
  
  &lt;button onclick="increPlusx_eg()"&gt;Show Result&lt;/button&gt;
  
  &lt;p id="incrementPlusx_eg"&gt;&lt;/p&gt;
  
  &lt;script&gt;
  function increPlusx_eg()
  {
  var x=25;
  var y=++x;
  var incpxEg=document.GetElementById("incrementPlusx_eg")
  incpxEg.innerHTML="y+" + y + ", x=" + x;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks,
  JJ</p>