Code like this:
var str = \"Hello StackOverflow !\"; alert(typeof str);
gives me string as result. This means strings are not
string
Strings are pure objects: http://www.ecma-international.org/ecma-262/5.1/#sec-15.5
So the question is, what does the typeof operator. It simply acts according to its ECMA specification:
typeof
http://www.ecma-international.org/ecma-262/5.1/#sec-11.4.3