2009/7/24 Samer Ziadeh <samerzia...@gmail.com>:
> isn't everything an object?

No:

typeof 2; // returns "number"
typeof new Number(2); // returns "object"
typeof ""; // returns "string"
typeof new String(""); // returns "object"

Primitive types such as string and number will be automatically
converted to an object of the appropriate type if necessary (e.g.
"2.valueOf()") but they are not objects as such. See ECMAScript 262
section 4.3, and section 9 on Type Conversion.

Regards,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to