On Sat, Aug 27, 2011 at 9:05 PM, xavierm02 <[email protected]> wrote:
> Hi,
> I was wondering when it was allowed to use reserved words. Let's say
You can use reserved words as property names of objects. You cannot
use them as variable names. Note that the property names of the object
literal are not "variables". So in your example:
var o = {
delete: true
};
`o` is a variable and `delete` is a property name.
- peter
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]