title: In an increment, why does the value of the variable get passed instead of the value as well as the increment?
body: <p>Here's my code:</p>
  
  <pre><code>var x = 3;
  var y = x++;
  y += 1;
  </code></pre>
  
  <p>Output: <code>y = 4</code></p>
  
  <p>I know the computer is right, but I'm not sure why the computer is right. 
  <strong>y</strong> gets assigned the value <strong>3</strong> from <strong>x</strong>, then it increments it to <strong>4</strong> in line 2. So, the output from line 3 should be <strong>5</strong>, correct? </p>
  
  <p>From what I've read, <strong>y</strong> gets assigned the value of <strong>x</strong> before the increment happens, but when it does happen, why does the value of <strong>y</strong> not change?</p>