Posted on November 4th, 2008
>>> typeof 'test' "string" >>> 'test' instanceof String false >>> s = new String('test') >>> typeof s "object" >>> s instanceof String true
So the string "test" can be a "string", not a String, an "object" or a String. Good times. Then there's my personal favorite:
>>> typeof null "object"