String 型とか参照型とか
js> new String("hoge") == new String("hoge") false js> "hoge" instanceof String false js> String("hoge") instanceof String false js> "hoge".constructor function String() { [native code] } js> (new String("hoge")) instanceof String true js> (new String("hoge")).constructor function String() { [native code] }
これと同じことが Number にもいえる。