Other identifiers to avoid

The object names used in Appendix A aren’t officially reserved (outside of the keywords above), but as they are part of the JavaScript language, you shouldn’t use them as function or variable names. If you do, abandon all hope; the results will be unpredictable.

In addition, most browsers are case-sensitive, which means that they differentiate between Document and document. Internet Explorer is only sometimes case-sensitive, which means that, for example, it may not understand any difference between Document and document. Consequently, be aware that just because it works in one browser doesn’t mean that it’ll always work in others. Test, test, test.

Get JavaScript and Ajax for the Web: Visual QuickStart Guide, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.