title: Confusion About Operator Precedence
body: <p>Im going through the 'Grammer' chapter in <a href="https://github.com/getify/You-Dont-Know-JS/blob/master/types%20%26%20grammar/ch5.md" rel="nofollow">Kyle's You Dont Know Js</a>.</p>
  
  <p>As per <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence" rel="nofollow">this link at MDN</a>, <code>...++</code> <code>Postfix increment</code> has a higher precedence over <code>=</code> &amp; even <code>++...</code> <code>Prefix increment</code>. Yet, in javascript, the following code seems to prove otherwise. </p>
  
  <pre><code>var a = 1;
  var b = a++; // b = 1; a = 2;
  var c = ++a; // c = 3; a = 3;
  </code></pre>
  
  <p>What am I getting wrong? Doesn't the above code show that <code>=</code> &amp; <code>...++</code> <code>Postfix increment</code> have a higher precedence over <code>=</code> &amp; <code>++...</code>?</p>