using reserved words as property names, revisited
Can a reserved word be used as an object's property name? This issue was raised in indirectly previous a stackoverflow question . the answer seemed general consensus by @Squeegy: You can use those words, but only as strings and not shorthand properties - foo["class"] is cool, whereas foo.class is not helpfully giving a link to the list of reserved words while I think that @Squeeky is probably more knowledgeable than me in this area and it is probably a bad idea to use reserved words in some situations, I think his conclusion is wrong based on two points: testing of the reserved words using