title: Javascript array variable when named "name" showing unexpected result when storing strings
body: <p>I am writing a very simple code for storing strings in an array and then splitting it but apparently the "variable name" seems to have an impact on the results.</p>
  
  <p>I have tried this on Google Chrome console as well as Microsoft edge. Results are the same.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var fullName = "Jonathan Archer";
  var name = fullName.split(" ");
  console.log(name[0]);
  
  //The output of the above code is : "J"
  
  var userName = fullName.split(" ");
  console.log(userName[0]);
  
  //The output of the above code is: "Jonathan"
  
  //Also tried following, also exhibited same behavior as above
  var name = ["Jonathan", "Archer"];
  var userName = ["Jonathan", "Archer"];
  console.log(name[0]);
  console.log(userName[0]);</code></pre>
  </div>
  </div>
  </p>
  
  <p>I don't see why these two code snippets are producing different results. Is there any restriction for using "name" as an array name in JavaScript?</p>