Some SPECIAL words such as Object, Array, Function, Method, Number etc are not belong to keywords in Javascrpt:
Reserved Keywords in Javascript.
But I have to use them carfully, they are not NORMAL words as object, array, method, number, foo …
I’d like to know how many such SPECIAL words we have? Pls give me the list.
Just to clarify, “function” is a reserved word, “Function” is a predefined object in the global scope.
The special words you list (although I’m not sure about “Method”?) are predefined JavaScript Classes and Objects in the global scope. They aren’t necessarily reserved words because they aren’t part of the language syntax and can, in some cases, be overridden. But yes, ordinarily they should not be used and should otherwise be treated the same way as ‘reserved words’. See also Global Properties and Methods.
EDIT: With reference to the list provided at developer.mozilla.org/en/JavaScript/Reference/Global_Objects – this appears to be a list of the core JavaScript Objects, irrespective of whether the JavaScript engine is running in the browser or not. This is a sub-list of the list provided at About.com. Although why ‘Boolean’ is omitted from the list of Global Objects at About.com I don’t know – this does appear to be an omission?
Other objects defined by the (Mozilla) browser/DOM are listed in the Gecko DOM Reference.