Q:

Why global variable 'name' changes to string?

When I make array object named "name", type automatically changes to "String", not "Array". Why?
<body>
  <script>
    console.log('---------------------------------');
    var name1 = ['abc', 'def'];
    console.log(name1);
    console.log(typeof name1);

    console.log('---------------------------------');
    var name = ['ghi', 'jkl'];
    console.log(name);
    console.log(typeof name);
  </script>    
</body>

Result in Chrome(Mac):
---------------------------------
["abc", "def"]
object
---------------------------------
ghi,jkl
string   // <- Why?

A:

https://developer.mozilla.org/en-US/docs/Web/API/Window.name
It is a string, because window.name has a purpose. You are setting the name of the window. 

