title: strange behaviour of variable named "status" in javascript
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
  
  &lt;p id="demo1"&gt;&lt;/p&gt;
  &lt;p id="demo2"&gt;&lt;/p&gt;
  
  &lt;script&gt;
  var status = [true,false,true,false,true,false,true,false,true,false];
  var status1 = [true,false,true,false,true,false,true,false,true,false];
  
  document.getElementById("demo1").innerHTML = status[2];
  document.getElementById("demo2").innerHTML = status1[2];
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/vdr2r38r/" rel="noreferrer">https://jsfiddle.net/vdr2r38r/</a></p>
  
  <p>Why is the behavior different  for identical variables with different names?</p>