title: Is the comma in a `var` statement an example of the comma operator?
body: <p>Or in a <code>const</code> or <code>let</code> statement, for that matter.</p>
  
  <p>For example, in this statement <code>const a = 0, b = 1;</code>, the equivalent code (completely same effect) would be:</p>
  
  <pre><code>const a = 0;
  const b = 1;
  </code></pre>
  
  <p>But then, am I right to say that the comma in that statement is not the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_Operator" rel="nofollow noreferrer">comma operator</a>? Because if it was the comma operator, then <code>const a = 0, b = 1</code> should be equivalent to:</p>
  
  <pre><code>a = 0; // This already would throw a ReferenceError in strict mode
  const b = 1;
  </code></pre>
  
  <p>Similarly, <code>var a, b, c;</code> should be to <code>a; b; var c;</code> if that comma indeed was the comma operator, but instead its effect is that of <code>var a; var b; var c;</code>.</p>
  
  <p>Is my reasoning correct, or do I misunderstand the comma operator? I ask this because I've seen multiple articles giving statements like <code>var i = 0, j = 9;</code> as examples of the comma operator (that last one is from the MDN page), but I think that it's a different comma, in the same way that commas in function parameters and arrays are different from the comma operator.</p>
  
  <p>Is it an example of the comma operator, or not?</p>