Skip to main content

Reserved Keywords in Javascript



What Javascript keywords (function names, variables, etc) are reserved?





Source: Tips4all

Comments

  1. We should be linking to the actual sources of info, rather than just the top google hit.

    http://developer.mozilla.org/En/Core_JavaScript_1.5_Reference/Reserved_Words

    JSscript 8.0:
    http://msdn.microsoft.com/en-us/library/ttyab5c8.aspx

    I'll look for ECMAScript links later.

    ReplyDelete
  2. This is one of the many things discussed in "JavaScript: The Good Parts" by Douglas Crockford.

    By the way, I'm not affiliated with the publisher; The book is just that awesome.

    ReplyDelete
  3. I discovered today that the word "keywords" is a reserved word in IE javascript. It turns out to be an object that contains a list of all the keywords. No errors are generated if you try and use this as a variable, but any time you try and access the value of your variable you get an object back instead of what you assigned to it. Arg!

    ReplyDelete
  4. header and footer just broke my script in IE8.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?