Someone I know is just learning programming and stumbled upon this and left me baffled:
Please open a console (Chrome/Firefox) and type: var name = ['what', 'the', '...?'];
I would expect name to be an array of strings, but:
typeof namedisplaysstringinstead ofArray- listing the 
namevariable prints a string instead of an array name.lengthis13instead of3- writing 
name = name.split(',')returns an array["what", "the", "...?"]as expected, butnameis still astring, not an array 
name is the only variable name that seems to behave this way, or at least I couldn't find another one. 
Is this just a console quirk, a JavaScript engine bug, or what?
NOTE: the above happens on Chrome and Firefox. IE Edge surprisingly works as expected (typeof name is Array and all that). Not tested on other browsers.
name. developer.mozilla.org/en-US/docs/Web/API/Window/name